@@ -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 |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | /** |
32 | 32 | * @api |
33 | 33 | * |
34 | - * @param array|ApplicationConfig $config |
|
34 | + * @param ApplicationConfig $config |
|
35 | 35 | * @param array $settings |
36 | 36 | * |
37 | 37 | * @return ConfigServiceProvider |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | /** |
146 | 146 | * @param string $name |
147 | 147 | * @param array $settings |
148 | - * @param mixed $default |
|
148 | + * @param string $default |
|
149 | 149 | * |
150 | 150 | * @return mixed |
151 | 151 | */ |
@@ -35,8 +35,6 @@ |
||
35 | 35 | } |
36 | 36 | |
37 | 37 | /** |
38 | - * @param string $interface |
|
39 | - * @param array $config |
|
40 | 38 | */ |
41 | 39 | private function configureInterface(InflectorDefinition $definition) |
42 | 40 | { |
@@ -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 | } |
@@ -43,7 +43,7 @@ |
||
43 | 43 | ]); |
44 | 44 | |
45 | 45 | $configs = array_map( |
46 | - function ($filename) use ($factory) { |
|
46 | + function($filename) use ($factory) { |
|
47 | 47 | $reader = $factory->create($filename); |
48 | 48 | return $reader->read($filename); |
49 | 49 | }, |
@@ -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 |
@@ -29,6 +29,6 @@ |
||
29 | 29 | return '[]'; |
30 | 30 | } |
31 | 31 | |
32 | - return '["' . implode('", "', $options) . '"]'; |
|
32 | + return '["'.implode('", "', $options).'"]'; |
|
33 | 33 | } |
34 | 34 | } |