@@ -24,7 +24,7 @@ |
||
| 24 | 24 | } |
| 25 | 25 | $cmd = $matches['cmd']; |
| 26 | 26 | if(empty($cmd) || strchr($cmd, '"') || strchr($cmd, "'")) { |
| 27 | - throw new ParserException("Could not parse command"); |
|
| 27 | + throw new ParserException("Could not parse command"); |
|
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | $args = $this->parseSentence($matches['prm']); |
@@ -19,11 +19,11 @@ 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']; |
| 26 | - if(empty($cmd) || strchr($cmd, '"') || strchr($cmd, "'")) { |
|
| 26 | + if (empty($cmd) || strchr($cmd, '"') || strchr($cmd, "'")) { |
|
| 27 | 27 | throw new ParserException("Could not parse command"); |
| 28 | 28 | } |
| 29 | 29 | |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | |
| 32 | 32 | $tmp = array(); |
| 33 | 33 | foreach ($args as $arg) { |
| 34 | - if (is_string($arg) && ! empty($arg)) { |
|
| 34 | + if (is_string($arg) && !empty($arg)) { |
|
| 35 | 35 | $tmp[] = $arg; |
| 36 | 36 | } |
| 37 | 37 | } |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | |
| 47 | 47 | $args = array(); |
| 48 | 48 | |
| 49 | - if (! preg_match_all($sentencePattern, $param, $args)) { |
|
| 49 | + if (!preg_match_all($sentencePattern, $param, $args)) { |
|
| 50 | 50 | $args[] = $param; |
| 51 | 51 | } else { |
| 52 | 52 | $realArgs = array(); |