@@ -9,9 +9,9 @@ |
||
9 | 9 | public static function get(string $key, $default = null): callable |
10 | 10 | { |
11 | 11 | if (count(func_get_args()) === 2) { |
12 | - return static fn () => $_ENV[$key] ?? $default; |
|
12 | + return static fn() => $_ENV[$key] ?? $default; |
|
13 | 13 | } |
14 | 14 | |
15 | - return static fn () => $_ENV[$key]; |
|
15 | + return static fn() => $_ENV[$key]; |
|
16 | 16 | } |
17 | 17 | } |
@@ -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 | } |
@@ -39,7 +39,6 @@ |
||
39 | 39 | |
40 | 40 | /** |
41 | 41 | * Returns ordered list of packages: |
42 | - |
|
43 | 42 | * - Packages listed earlier in the composer.json will get earlier in the list. |
44 | 43 | * - Children are listed before parents. |
45 | 44 | * |
@@ -28,7 +28,7 @@ |
||
28 | 28 | public static function pushValues(array $data, array $values, string $prefix = null) |
29 | 29 | { |
30 | 30 | foreach ($data as $key => &$value) { |
31 | - $subkey = $prefix===null ? $key : "${prefix}_$key"; |
|
31 | + $subkey = $prefix === null ? $key : "${prefix}_$key"; |
|
32 | 32 | |
33 | 33 | $envkey = self::getEnvKey($subkey); |
34 | 34 | if (isset($values[$envkey])) { |
@@ -13,7 +13,7 @@ |
||
13 | 13 | { |
14 | 14 | $params = $this->builder->getVars()['params'] ?? []; |
15 | 15 | |
16 | - $result = static function (array $params) { |
|
16 | + $result = static function(array $params) { |
|
17 | 17 | return require func_get_arg(1); |
18 | 18 | }; |
19 | 19 |