Completed
Push — master ( bcd48a...91ace5 )
by Maik
09:09
created
src/DefaultParser.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
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']);
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -19,11 +19,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.