@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | |
| 136 | 136 | if (!$this->container->hasExtension($namespace)) { |
| 137 | 137 | $extensionNamespaces = array_filter(array_map( |
| 138 | - function (ExtensionInterface $ext) { |
|
| 138 | + function(ExtensionInterface $ext) { |
|
| 139 | 139 | return $ext->getAlias(); |
| 140 | 140 | }, |
| 141 | 141 | $this->container->getExtensions() |
@@ -398,7 +398,7 @@ discard block |
||
| 398 | 398 | } |
| 399 | 399 | |
| 400 | 400 | $autowired = false; |
| 401 | - array_walk($service['arguments'], function (&$value) use (&$autowired) { |
|
| 401 | + array_walk($service['arguments'], function(&$value) use (&$autowired) { |
|
| 402 | 402 | if ('...' === $value) { |
| 403 | 403 | $value = ''; |
| 404 | 404 | $autowired = true; |
@@ -571,7 +571,7 @@ discard block |
||
| 571 | 571 | return ['@' === $parts[0][0] ? $this->resolveServices($parts[0], $file) : $parts[0], substr($parts[1], 1)]; |
| 572 | 572 | } |
| 573 | 573 | |
| 574 | - return [$this->resolveServices(('@' === $parts[0][0] ?: '@').$parts[0], $file), $parts[1]]; |
|
| 574 | + return [$this->resolveServices(('@' === $parts[0][0] ?: '@') . $parts[0], $file), $parts[1]]; |
|
| 575 | 575 | } |
| 576 | 576 | |
| 577 | 577 | private function resolveServices($value, $file) |
@@ -590,12 +590,12 @@ discard block |
||
| 590 | 590 | } |
| 591 | 591 | |
| 592 | 592 | if (is_array($value)) { |
| 593 | - $value = array_map(function ($value) use ($file) { |
|
| 593 | + $value = array_map(function($value) use ($file) { |
|
| 594 | 594 | return $this->resolveServices($value, $file); |
| 595 | 595 | }, $value); |
| 596 | - } elseif (is_string($value) && 0 === strpos($value, '@=')) { |
|
| 596 | + } elseif (is_string($value) && 0 === strpos($value, '@=')) { |
|
| 597 | 597 | return new Expression(substr($value, 2)); |
| 598 | - } elseif (is_string($value) && 0 === strpos($value, '@')) { |
|
| 598 | + } elseif (is_string($value) && 0 === strpos($value, '@')) { |
|
| 599 | 599 | if (0 === strpos($value, '@@')) { |
| 600 | 600 | $value = substr($value, 1); |
| 601 | 601 | $invalidBehavior = null; |