@@ -72,12 +72,12 @@ |
||
| 72 | 72 | $data = (array)($data['parameters']['env'] ?? []); |
| 73 | 73 | array_walk_recursive( |
| 74 | 74 | $data, |
| 75 | - static function (mixed &$val): void { |
|
| 75 | + static function(mixed &$val): void { |
|
| 76 | 76 | if ($val instanceof Statement && $entity = $val->getEntity()) { |
| 77 | 77 | $args = $val->arguments; |
| 78 | 78 | |
| 79 | 79 | if (is_array($entity) && $entity[0] === Environment::class) { |
| 80 | - $type = (string) ($entity[1] ?? 'string'); |
|
| 80 | + $type = (string)($entity[1] ?? 'string'); |
|
| 81 | 81 | $args = [ |
| 82 | 82 | $args[1] ?? '', |
| 83 | 83 | true |
@@ -18,16 +18,16 @@ |
||
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | |
| 21 | - /** |
|
| 22 | - * @return array<mixed> |
|
| 23 | - */ |
|
| 24 | - protected function getDefaultParameters(): array |
|
| 25 | - { |
|
| 26 | - $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS); |
|
| 21 | + /** |
|
| 22 | + * @return array<mixed> |
|
| 23 | + */ |
|
| 24 | + protected function getDefaultParameters(): array |
|
| 25 | + { |
|
| 26 | + $trace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS); |
|
| 27 | 27 | |
| 28 | - $parameters = parent::getDefaultParameters(); |
|
| 29 | - $parameters['appDir'] = dirname((string)$trace[2]['file']); |
|
| 28 | + $parameters = parent::getDefaultParameters(); |
|
| 29 | + $parameters['appDir'] = dirname((string)$trace[2]['file']); |
|
| 30 | 30 | |
| 31 | - return $parameters; |
|
| 32 | - } |
|
| 31 | + return $parameters; |
|
| 32 | + } |
|
| 33 | 33 | } |