@@ -247,6 +247,6 @@ |
||
247 | 247 | */ |
248 | 248 | public static function require(string $config): callable |
249 | 249 | { |
250 | - return static fn () => require $config; |
|
250 | + return static fn() => require $config; |
|
251 | 251 | } |
252 | 252 | } |
@@ -13,7 +13,7 @@ |
||
13 | 13 | { |
14 | 14 | protected function writeFile(string $path, array $data): void |
15 | 15 | { |
16 | - if($data) { |
|
16 | + if ($data) { |
|
17 | 17 | $envs = '[]'; //Helper::exportVar($data); |
18 | 18 | } else { |
19 | 19 | $envs = '[]'; |
@@ -119,7 +119,7 @@ |
||
119 | 119 | $limit = 10; |
120 | 120 | while (preg_match('~\'__(\w+)__\'~', $output)) { |
121 | 121 | // TODO will be fixed soon |
122 | - if (--$limit<1) { |
|
122 | + if (--$limit < 1) { |
|
123 | 123 | throw new \Exception('too much'); |
124 | 124 | } |
125 | 125 | $output = strtr($output, static::$tokens); |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | { |
37 | 37 | $params = $this->builder->getVars()['params'] ?? []; |
38 | 38 | |
39 | - $result = static function (array $params) { |
|
39 | + $result = static function(array $params) { |
|
40 | 40 | return require func_get_arg(1); |
41 | 41 | }; |
42 | 42 | |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | protected function extractUses($ast) |
55 | 55 | { |
56 | 56 | /** @var Stmt $node */ |
57 | - foreach ($ast as $node){ |
|
57 | + foreach ($ast as $node) { |
|
58 | 58 | if (isset($node->type) && $node->type == Use_::TYPE_NORMAL and !empty($node->uses)) { |
59 | 59 | foreach ($node->uses as $use) { |
60 | 60 | $className = end($use->name->parts); |