Completed
Push — master ( 16ecff...43e5a3 )
by Maik
16:45 queued 06:49
created
src/DefaultParser.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,13 +20,13 @@  discard block
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.