@@ -162,9 +162,9 @@ |
||
| 162 | 162 | /** |
| 163 | 163 | * @param string $name |
| 164 | 164 | * @param array $settings |
| 165 | - * @param mixed $default |
|
| 165 | + * @param string $default |
|
| 166 | 166 | * |
| 167 | - * @return mixed |
|
| 167 | + * @return string |
|
| 168 | 168 | */ |
| 169 | 169 | private static function getSettingOrDefault($name, array $settings, $default) |
| 170 | 170 | { |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | |
| 64 | 64 | if (empty($files)) { |
| 65 | 65 | throw new NoMatchingFilesException( |
| 66 | - 'No files found matching patterns: ' . implode(', ', $patterns) |
|
| 66 | + 'No files found matching patterns: '.implode(', ', $patterns) |
|
| 67 | 67 | ); |
| 68 | 68 | } |
| 69 | 69 | |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | ]); |
| 74 | 74 | |
| 75 | 75 | $configs = array_map( |
| 76 | - function ($filename) use ($factory) { |
|
| 76 | + function($filename) use ($factory) { |
|
| 77 | 77 | $reader = $factory->create($filename); |
| 78 | 78 | return $reader->read($filename); |
| 79 | 79 | }, |
@@ -102,10 +102,10 @@ discard block |
||
| 102 | 102 | $this->config = []; |
| 103 | 103 | |
| 104 | 104 | $iterator = new ConfigIterator(new Config($config, $separator), $separator); |
| 105 | - $prefix = $prefix ? $prefix . $separator : ''; |
|
| 105 | + $prefix = $prefix ? $prefix.$separator : ''; |
|
| 106 | 106 | |
| 107 | 107 | foreach ($iterator as $key => $value) { |
| 108 | - $this->config[$prefix . $key] = $value; |
|
| 108 | + $this->config[$prefix.$key] = $value; |
|
| 109 | 109 | } |
| 110 | 110 | |
| 111 | 111 | $this->subProviders = $subProviders; |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | public function register() |
| 121 | 121 | { |
| 122 | 122 | foreach ($this->config as $key => $value) { |
| 123 | - $this->getContainer()->add($key, function () use ($value) { |
|
| 123 | + $this->getContainer()->add($key, function() use ($value) { |
|
| 124 | 124 | return $value; |
| 125 | 125 | }); |
| 126 | 126 | } |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | |
| 81 | 81 | foreach ($path as $node) { |
| 82 | 82 | if (!is_array($pointer) || !array_key_exists($node, $pointer)) { |
| 83 | - throw new EntryDoesNotExistException("No entry found for " . implode($this->separator, $path)); |
|
| 83 | + throw new EntryDoesNotExistException("No entry found for ".implode($this->separator, $path)); |
|
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | $pointer = &$pointer[$node]; |