@@ -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; |
@@ -562,7 +562,7 @@ discard block |
||
| 562 | 562 | } elseif (strpos($factory, ':') !== false) { |
| 563 | 563 | $parts = explode(':', $factory, 2); |
| 564 | 564 | |
| 565 | - return [$this->resolveServices(('@' === $parts[0][0] ?: '@').$parts[0], $file), $parts[1]]; |
|
| 565 | + return [$this->resolveServices(('@' === $parts[0][0] ?: '@') . $parts[0], $file), $parts[1]]; |
|
| 566 | 566 | } else { |
| 567 | 567 | return $factory; |
| 568 | 568 | } |
@@ -587,12 +587,12 @@ discard block |
||
| 587 | 587 | } |
| 588 | 588 | |
| 589 | 589 | if (is_array($value)) { |
| 590 | - $value = array_map(function ($value) use ($file) { |
|
| 590 | + $value = array_map(function($value) use ($file) { |
|
| 591 | 591 | return $this->resolveServices($value, $file); |
| 592 | 592 | }, $value); |
| 593 | - } elseif (is_string($value) && 0 === strpos($value, '@=')) { |
|
| 593 | + } elseif (is_string($value) && 0 === strpos($value, '@=')) { |
|
| 594 | 594 | return new Expression(substr($value, 2)); |
| 595 | - } elseif (is_string($value) && 0 === strpos($value, '@')) { |
|
| 595 | + } elseif (is_string($value) && 0 === strpos($value, '@')) { |
|
| 596 | 596 | if (0 === strpos($value, '@@')) { |
| 597 | 597 | $value = substr($value, 1); |
| 598 | 598 | $invalidBehavior = null; |