@@ -213,6 +213,9 @@ |
||
213 | 213 | } |
214 | 214 | } |
215 | 215 | |
216 | + /** |
|
217 | + * @param string $id |
|
218 | + */ |
|
216 | 219 | private function parseDefinition($id, $service, $file) |
217 | 220 | { |
218 | 221 | // nette |
@@ -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() |
@@ -339,7 +339,7 @@ discard block |
||
339 | 339 | |
340 | 340 | if (isset($service['arguments'])) { |
341 | 341 | $autowired = false; |
342 | - array_walk($service['arguments'], function (&$value) use (&$autowired) { |
|
342 | + array_walk($service['arguments'], function(&$value) use (&$autowired) { |
|
343 | 343 | if ('...' === $value) { |
344 | 344 | $value = ''; |
345 | 345 | $autowired = true; |
@@ -502,7 +502,7 @@ discard block |
||
502 | 502 | } elseif (strpos($factory, ':') !== false) { |
503 | 503 | $parts = explode(':', $factory, 2); |
504 | 504 | |
505 | - return [$this->resolveServices(('@' === $parts[0][0] ?: '@').$parts[0], $file), $parts[1]]; |
|
505 | + return [$this->resolveServices(('@' === $parts[0][0] ?: '@') . $parts[0], $file), $parts[1]]; |
|
506 | 506 | } else { |
507 | 507 | return $factory; |
508 | 508 | } |
@@ -527,12 +527,12 @@ discard block |
||
527 | 527 | } |
528 | 528 | |
529 | 529 | if (is_array($value)) { |
530 | - $value = array_map(function ($value) use ($file) { |
|
530 | + $value = array_map(function($value) use ($file) { |
|
531 | 531 | return $this->resolveServices($value, $file); |
532 | 532 | }, $value); |
533 | - } elseif (is_string($value) && 0 === strpos($value, '@=')) { |
|
533 | + } elseif (is_string($value) && 0 === strpos($value, '@=')) { |
|
534 | 534 | return new Expression(substr($value, 2)); |
535 | - } elseif (is_string($value) && 0 === strpos($value, '@')) { |
|
535 | + } elseif (is_string($value) && 0 === strpos($value, '@')) { |
|
536 | 536 | if (0 === strpos($value, '@@')) { |
537 | 537 | $value = substr($value, 1); |
538 | 538 | $invalidBehavior = null; |