@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | foreach ($config as $key => $value) { |
| 38 | - $this->container[$prefix . $key] = $value; |
|
| 38 | + $this->container[$prefix.$key] = $value; |
|
| 39 | 39 | } |
| 40 | 40 | } |
| 41 | 41 | |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | */ |
| 85 | 85 | private function createFactoryFactory(ServiceDefinition $definition) |
| 86 | 86 | { |
| 87 | - return function () use ($definition) { |
|
| 87 | + return function() use ($definition) { |
|
| 88 | 88 | $className = $definition->getClass(); |
| 89 | 89 | $factory = new $className(); |
| 90 | 90 | |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | */ |
| 100 | 100 | private function createInstanceFactory(ServiceDefinition $definition) |
| 101 | 101 | { |
| 102 | - return function () use ($definition) { |
|
| 102 | + return function() use ($definition) { |
|
| 103 | 103 | $className = $definition->getClass(); |
| 104 | 104 | $instance = new $className(...$this->resolveArguments($definition->getArguments())); |
| 105 | 105 | |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | private function resolveArguments(array $arguments) |
| 120 | 120 | { |
| 121 | 121 | return array_map( |
| 122 | - function ($argument) { |
|
| 122 | + function($argument) { |
|
| 123 | 123 | if (isset($this->container[$argument])) { |
| 124 | 124 | return $this->container[$argument]; |
| 125 | 125 | } |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | */ |
| 85 | 85 | private function createFactoryFactory(ServiceDefinition $definition) |
| 86 | 86 | { |
| 87 | - return function () use ($definition) { |
|
| 87 | + return function() use ($definition) { |
|
| 88 | 88 | $className = $definition->getClass(); |
| 89 | 89 | $factory = new $className(); |
| 90 | 90 | |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | private function resolveArguments(array $arguments) |
| 101 | 101 | { |
| 102 | 102 | return array_map( |
| 103 | - function ($argument) { |
|
| 103 | + function($argument) { |
|
| 104 | 104 | if ($this->container->has($argument)) { |
| 105 | 105 | return $this->container->get($argument); |
| 106 | 106 | } |