@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | foreach ($config as $key => $value) { |
| 28 | - $container[$prefix . $key] = $value; |
|
| 28 | + $container[$prefix.$key] = $value; |
|
| 29 | 29 | } |
| 30 | 30 | } |
| 31 | 31 | |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | |
| 46 | 46 | private function addServiceToContainer(ServiceDefinition $definition) |
| 47 | 47 | { |
| 48 | - $factory = function () use ($definition) { |
|
| 48 | + $factory = function() use ($definition) { |
|
| 49 | 49 | $reflection = new ReflectionClass($definition->getClass()); |
| 50 | 50 | |
| 51 | 51 | $instance = $reflection->newInstanceArgs($this->resolveArguments($definition->getArguments())); |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | private function resolveArguments(array $arguments) |
| 68 | 68 | { |
| 69 | 69 | return array_map( |
| 70 | - function ($argument) { |
|
| 70 | + function($argument) { |
|
| 71 | 71 | return isset($this->container[$argument]) ? $this->container[$argument] : $argument; |
| 72 | 72 | }, |
| 73 | 73 | $arguments |