@@ -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 |
@@ -280,6 +280,4 @@ |
||
280 | 280 | |
281 | 281 | protected function getOutputPath(string $name = null): string |
282 | 282 | { |
283 | - return $this->builder->getOutputPath($name ?: $this->name); |
|
284 | - } |
|
285 | -} |
|
283 | + return $this->builder->getOutputPath($name ?: $this->name |
|
286 | 284 | \ No newline at end of file |
@@ -280,6 +280,4 @@ |
||
280 | 280 | |
281 | 281 | protected function getOutputPath(string $name = null): string |
282 | 282 | { |
283 | - return $this->builder->getOutputPath($name ?: $this->name); |
|
284 | - } |
|
285 | -} |
|
283 | + return $this->builder->getOutputPath($name ?: $this->name |
|
286 | 284 | \ No newline at end of file |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | { |
222 | 222 | $res = []; |
223 | 223 | foreach ($data as $key => $value) { |
224 | - $res[$this->substitutePath($key, $dir)] = $this->substitutePath($value, $dir); |
|
224 | + $res[$this - >substitutePath($key, $dir)] = $this->substitutePath($value, $dir); |
|
225 | 225 | } |
226 | 226 | |
227 | 227 | return $res; |
@@ -280,6 +280,4 @@ discard block |
||
280 | 280 | |
281 | 281 | protected function getOutputPath(string $name = null): string |
282 | 282 | { |
283 | - return $this->builder->getOutputPath($name ?: $this->name); |
|
284 | - } |
|
285 | -} |
|
283 | + return $this->builder->getOutputPath($name ?: $this->name |
|
286 | 284 | \ No newline at end of file |
@@ -280,6 +280,4 @@ |
||
280 | 280 | |
281 | 281 | protected function getOutputPath(string $name = null): string |
282 | 282 | { |
283 | - return $this->builder->getOutputPath($name ?: $this->name); |
|
284 | - } |
|
285 | -} |
|
283 | + return $this->builder->getOutputPath($name ?: $this->name |
|
286 | 284 | \ No newline at end of file |
@@ -280,6 +280,4 @@ |
||
280 | 280 | |
281 | 281 | protected function getOutputPath(string $name = null): string |
282 | 282 | { |
283 | - return $this->builder->getOutputPath($name ?: $this->name); |
|
284 | - } |
|
285 | -} |
|
283 | + return $this->builder->getOutputPath($name ?: $this->name |
|
286 | 284 | \ No newline at end of file |
@@ -20,21 +20,4 @@ |
||
20 | 20 | return {$envs}; |
21 | 21 | PHP; |
22 | 22 | |
23 | - $this->contentWriter->write($path, $content . PHP_EOL); |
|
24 | - } |
|
25 | - |
|
26 | - protected function envsRequired(): bool |
|
27 | - { |
|
28 | - return false; |
|
29 | - } |
|
30 | - |
|
31 | - protected function constantsRequired(): bool |
|
32 | - { |
|
33 | - return false; |
|
34 | - } |
|
35 | - |
|
36 | - protected function paramsRequired(): bool |
|
37 | - { |
|
38 | - return false; |
|
39 | - } |
|
40 | -} |
|
23 | + $this->contentWriter->write($path, $content |
|
41 | 24 | \ No newline at end of file |
@@ -20,21 +20,4 @@ |
||
20 | 20 | return {$envs}; |
21 | 21 | PHP; |
22 | 22 | |
23 | - $this->contentWriter->write($path, $content . PHP_EOL); |
|
24 | - } |
|
25 | - |
|
26 | - protected function envsRequired(): bool |
|
27 | - { |
|
28 | - return false; |
|
29 | - } |
|
30 | - |
|
31 | - protected function constantsRequired(): bool |
|
32 | - { |
|
33 | - return false; |
|
34 | - } |
|
35 | - |
|
36 | - protected function paramsRequired(): bool |
|
37 | - { |
|
38 | - return false; |
|
39 | - } |
|
40 | -} |
|
23 | + $this->contentWriter->write($path, $content |
|
41 | 24 | \ No newline at end of file |
@@ -20,21 +20,4 @@ |
||
20 | 20 | return {$envs}; |
21 | 21 | PHP; |
22 | 22 | |
23 | - $this->contentWriter->write($path, $content . PHP_EOL); |
|
24 | - } |
|
25 | - |
|
26 | - protected function envsRequired(): bool |
|
27 | - { |
|
28 | - return false; |
|
29 | - } |
|
30 | - |
|
31 | - protected function constantsRequired(): bool |
|
32 | - { |
|
33 | - return false; |
|
34 | - } |
|
35 | - |
|
36 | - protected function paramsRequired(): bool |
|
37 | - { |
|
38 | - return false; |
|
39 | - } |
|
40 | -} |
|
23 | + $this->contentWriter->write($path, $content |
|
41 | 24 | \ No newline at end of file |
@@ -20,21 +20,4 @@ |
||
20 | 20 | return {$envs}; |
21 | 21 | PHP; |
22 | 22 | |
23 | - $this->contentWriter->write($path, $content . PHP_EOL); |
|
24 | - } |
|
25 | - |
|
26 | - protected function envsRequired(): bool |
|
27 | - { |
|
28 | - return false; |
|
29 | - } |
|
30 | - |
|
31 | - protected function constantsRequired(): bool |
|
32 | - { |
|
33 | - return false; |
|
34 | - } |
|
35 | - |
|
36 | - protected function paramsRequired(): bool |
|
37 | - { |
|
38 | - return false; |
|
39 | - } |
|
40 | -} |
|
23 | + $this->contentWriter->write($path, $content |
|
41 | 24 | \ No newline at end of file |
@@ -20,21 +20,4 @@ |
||
20 | 20 | return {$envs}; |
21 | 21 | PHP; |
22 | 22 | |
23 | - $this->contentWriter->write($path, $content . PHP_EOL); |
|
24 | - } |
|
25 | - |
|
26 | - protected function envsRequired(): bool |
|
27 | - { |
|
28 | - return false; |
|
29 | - } |
|
30 | - |
|
31 | - protected function constantsRequired(): bool |
|
32 | - { |
|
33 | - return false; |
|
34 | - } |
|
35 | - |
|
36 | - protected function paramsRequired(): bool |
|
37 | - { |
|
38 | - return false; |
|
39 | - } |
|
40 | -} |
|
23 | + $this->contentWriter->write($path, $content |
|
41 | 24 | \ No newline at end of file |