Passed
Push — master ( 38c7e9...702ac6 )
by Pierrick
05:37 queued 01:38
created
src/Parser.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
             throw new Exception('Macro with the same name already registered.');
32 32
         }
33 33
 
34
-        $this->macro[$macro->getName()] = [ $macro, 'execute' ];
34
+        $this->macro[$macro->getName()] = [$macro, 'execute'];
35 35
     }
36 36
 
37 37
     public function setVariable($name, $value)
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
                 $required  = $this->consumeOptionalAssignementOperator();
185 185
                 $realValue = $this->parseValue($required, $valueIsKey);
186 186
                 if ($valueIsKey) {
187
-                    return new ObjectNode([ $value => $realValue ]);
187
+                    return new ObjectNode([$value => $realValue]);
188 188
                 }
189 189
                 break;
190 190
             case Token::T_BOOL:
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
                 return $includeValue;
354 354
             }
355 355
 
356
-            $files = [ $path ];
356
+            $files = [$path];
357 357
         }
358 358
 
359 359
         $token = $this->token;
@@ -378,14 +378,14 @@  discard block
 block discarded – undo
378 378
 
379 379
     public function resolvePath($file)
380 380
     {
381
-        return $this->relativeToCurrentFile(function () use ($file) {
381
+        return $this->relativeToCurrentFile(function() use ($file) {
382 382
             return realpath($file);
383 383
         });
384 384
     }
385 385
 
386 386
     private function glob($pattern)
387 387
     {
388
-        return $this->relativeToCurrentFile(function () use ($pattern) {
388
+        return $this->relativeToCurrentFile(function() use ($pattern) {
389 389
             return array_map('realpath', glob($pattern) ?: []);
390 390
         });
391 391
     }
Please login to merge, or discard this patch.