@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | $pattern = '#(?<cmd>^"[^"]*"|\S*) *(?<prm>.*)?#'; |
| 20 | 20 | |
| 21 | 21 | $matches = array(); |
| 22 | - if (! preg_match($pattern, $input, $matches)) { |
|
| 22 | + if (!preg_match($pattern, $input, $matches)) { |
|
| 23 | 23 | throw new ParserException("Could not parse command"); |
| 24 | 24 | } |
| 25 | 25 | $cmd = $matches['cmd']; |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | |
| 29 | 29 | $tmp = array(); |
| 30 | 30 | foreach ($args as $arg) { |
| 31 | - if (is_string($arg) && ! empty($arg)) { |
|
| 31 | + if (is_string($arg) && !empty($arg)) { |
|
| 32 | 32 | $tmp[] = $arg; |
| 33 | 33 | } |
| 34 | 34 | } |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | |
| 44 | 44 | $args = array(); |
| 45 | 45 | |
| 46 | - if (! preg_match_all($sentencePattern, $param, $args)) { |
|
| 46 | + if (!preg_match_all($sentencePattern, $param, $args)) { |
|
| 47 | 47 | $args[] = $param; |
| 48 | 48 | } else { |
| 49 | 49 | $realArgs = array(); |