@@ -25,7 +25,7 @@ |
||
| 25 | 25 | public function getKeys() |
| 26 | 26 | { |
| 27 | 27 | return array_map( |
| 28 | - function (ServiceDefinition $definition) { |
|
| 28 | + function(ServiceDefinition $definition) { |
|
| 29 | 29 | return $definition->getKey(); |
| 30 | 30 | }, |
| 31 | 31 | $this->config |
@@ -26,8 +26,8 @@ discard block |
||
| 26 | 26 | $this->prefix = $prefix; |
| 27 | 27 | $this->config = $config; |
| 28 | 28 | $this->provides = array_map( |
| 29 | - function ($key) { |
|
| 30 | - return $this->keyPrefix() . $key; |
|
| 29 | + function($key) { |
|
| 30 | + return $this->keyPrefix().$key; |
|
| 31 | 31 | }, |
| 32 | 32 | $config->getKeys() |
| 33 | 33 | ); |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | $prefix = $this->keyPrefix(); |
| 39 | 39 | |
| 40 | 40 | foreach ($this->config as $key => $value) { |
| 41 | - $this->container->share($prefix . $key, function () use ($value) { |
|
| 41 | + $this->container->share($prefix.$key, function() use ($value) { |
|
| 42 | 42 | return $value; |
| 43 | 43 | }); |
| 44 | 44 | } |
@@ -53,6 +53,6 @@ discard block |
||
| 53 | 53 | return ''; |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | - return $this->prefix . $this->config->getSeparator(); |
|
| 56 | + return $this->prefix.$this->config->getSeparator(); |
|
| 57 | 57 | } |
| 58 | 58 | } |
@@ -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 | } |