@@ -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 | */ |
@@ -29,6 +29,6 @@ |
||
| 29 | 29 | return '[]'; |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | - return '["' . implode('", "', $options) . '"]'; |
|
| 32 | + return '["'.implode('", "', $options).'"]'; |
|
| 33 | 33 | } |
| 34 | 34 | } |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | foreach ($config as $key => $value) { |
| 36 | - $this->container[$prefix . $key] = $value; |
|
| 36 | + $this->container[$prefix.$key] = $value; |
|
| 37 | 37 | } |
| 38 | 38 | } |
| 39 | 39 | |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | |
| 52 | 52 | private function addServiceToContainer(ServiceDefinition $definition) |
| 53 | 53 | { |
| 54 | - $factory = function () use ($definition) { |
|
| 54 | + $factory = function() use ($definition) { |
|
| 55 | 55 | $reflection = new ReflectionClass($definition->getClass()); |
| 56 | 56 | |
| 57 | 57 | $instance = $reflection->newInstanceArgs($this->resolveArguments($definition->getArguments())); |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | private function resolveArguments(array $arguments) |
| 74 | 74 | { |
| 75 | 75 | return array_map( |
| 76 | - function ($argument) { |
|
| 76 | + function($argument) { |
|
| 77 | 77 | if (isset($this->container[$argument])) { |
| 78 | 78 | return $this->container[$argument]; |
| 79 | 79 | } |