@@ -31,7 +31,7 @@ discard block |
||
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) |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | $required = $this->consumeOptionalAssignementOperator(); |
182 | 182 | $realValue = $this->parseValue($required, $valueIsKey); |
183 | 183 | if ($valueIsKey) { |
184 | - return new ObjectNode([ $value => $realValue ]); |
|
184 | + return new ObjectNode([$value => $realValue]); |
|
185 | 185 | } |
186 | 186 | break; |
187 | 187 | case Token::T_BOOL: |
@@ -350,7 +350,7 @@ discard block |
||
350 | 350 | return $value; |
351 | 351 | } |
352 | 352 | |
353 | - $files = [ $path ]; |
|
353 | + $files = [$path]; |
|
354 | 354 | } |
355 | 355 | |
356 | 356 | $token = $this->token; |
@@ -376,14 +376,14 @@ discard block |
||
376 | 376 | |
377 | 377 | public function resolvePath($file) |
378 | 378 | { |
379 | - return $this->relativeToCurrentFile(function () use ($file) { |
|
379 | + return $this->relativeToCurrentFile(function() use ($file) { |
|
380 | 380 | return realpath($file); |
381 | 381 | }); |
382 | 382 | } |
383 | 383 | |
384 | 384 | private function glob($pattern) |
385 | 385 | { |
386 | - return $this->relativeToCurrentFile(function () use ($pattern) { |
|
386 | + return $this->relativeToCurrentFile(function() use ($pattern) { |
|
387 | 387 | return array_map('realpath', glob($pattern) ?: []); |
388 | 388 | }); |
389 | 389 | } |