OSDN Git Service
(root)
/
wvm
/
wvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82473c1
)
remove redundant array_filter() around preg_split()
author
scribu
<mail@scribu.net>
Tue, 30 Jul 2013 01:54:32 +0000
(
04:54
+0300)
committer
scribu
<mail@scribu.net>
Tue, 30 Jul 2013 02:00:24 +0000
(
05:00
+0300)
php/WP_CLI/SynopsisParser.php
patch
|
blob
|
history
diff --git
a/php/WP_CLI/SynopsisParser.php
b/php/WP_CLI/SynopsisParser.php
index
d7e4c1b
..
c28173e
100644
(file)
--- a/
php/WP_CLI/SynopsisParser.php
+++ b/
php/WP_CLI/SynopsisParser.php
@@
-9,7
+9,7
@@
class SynopsisParser {
* @return array List of parameters
*/
static function parse( $synopsis ) {
- $tokens =
array_filter( preg_split( '/[\s\t]+/', $synopsis )
);
+ $tokens =
preg_split( '/[\s\t]+/', $synopsis
);
$params = array();
foreach ( $tokens as $token ) {