@@ -20,13 +20,13 @@ discard block |
||
20 | 20 | $sentencePattern = '#[^\s"\']+|"([^"]*)"|\'([^\']*)\'#'; |
21 | 21 | |
22 | 22 | $matches = array(); |
23 | - if (! preg_match($pattern, $input, $matches)) { |
|
23 | + if (!preg_match($pattern, $input, $matches)) { |
|
24 | 24 | throw new ParserException("Could not parse command"); |
25 | 25 | } |
26 | 26 | $cmd = $matches['cmd']; |
27 | 27 | |
28 | 28 | $args = array(); |
29 | - if (! preg_match_all($sentencePattern, $matches['prm'], $args)) { |
|
29 | + if (!preg_match_all($sentencePattern, $matches['prm'], $args)) { |
|
30 | 30 | $args = $matches['prm']; |
31 | 31 | } else { |
32 | 32 | $realArgs = array(); |
@@ -42,13 +42,13 @@ discard block |
||
42 | 42 | if (is_array($args)) { |
43 | 43 | $tmp = array(); |
44 | 44 | foreach ($args as $arg) { |
45 | - if (is_string($arg) && ! empty($arg)) { |
|
45 | + if (is_string($arg) && !empty($arg)) { |
|
46 | 46 | $tmp[] = $arg; |
47 | 47 | } |
48 | 48 | } |
49 | 49 | $args = $tmp; |
50 | 50 | } else |
51 | - if (is_string($args) && ! empty($args)) { |
|
51 | + if (is_string($args) && !empty($args)) { |
|
52 | 52 | $args[] = $args; |
53 | 53 | } else { |
54 | 54 | $args = array(); |