@@ -22,7 +22,7 @@ |
||
| 22 | 22 | /** |
| 23 | 23 | * @api |
| 24 | 24 | * |
| 25 | - * @param array $patterns |
|
| 25 | + * @param string[] $patterns |
|
| 26 | 26 | * @param string $separator |
| 27 | 27 | * |
| 28 | 28 | * @return self |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | |
| 35 | 35 | if (empty($files)) { |
| 36 | 36 | throw new NoMatchingFilesException( |
| 37 | - 'No files found matching patterns: ' . implode(', ', $patterns) |
|
| 37 | + 'No files found matching patterns: '.implode(', ', $patterns) |
|
| 38 | 38 | ); |
| 39 | 39 | } |
| 40 | 40 | |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | ]); |
| 45 | 45 | |
| 46 | 46 | $configs = array_map( |
| 47 | - function ($filename) use ($factory) { |
|
| 47 | + function($filename) use ($factory) { |
|
| 48 | 48 | $reader = $factory->create($filename); |
| 49 | 49 | return $reader->read($filename); |
| 50 | 50 | }, |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | |
| 122 | 122 | foreach ($path as $node) { |
| 123 | 123 | if (!is_array($pointer) || !array_key_exists($node, $pointer)) { |
| 124 | - throw new EntryDoesNotExistException("No entry found for " . implode($this->separator, $path)); |
|
| 124 | + throw new EntryDoesNotExistException("No entry found for ".implode($this->separator, $path)); |
|
| 125 | 125 | } |
| 126 | 126 | |
| 127 | 127 | $pointer = &$pointer[$node]; |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | /** |
| 30 | 30 | * @api |
| 31 | 31 | * |
| 32 | - * @param array|Config $config |
|
| 32 | + * @param Config $config |
|
| 33 | 33 | * @param array $settings |
| 34 | 34 | * |
| 35 | 35 | * @return ConfigServiceProvider |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | /** |
| 142 | 142 | * @param string $name |
| 143 | 143 | * @param array $settings |
| 144 | - * @param mixed $default |
|
| 144 | + * @param string $default |
|
| 145 | 145 | * |
| 146 | 146 | * @return mixed |
| 147 | 147 | */ |
@@ -81,10 +81,10 @@ discard block |
||
| 81 | 81 | $config = ($config instanceof Config) ? $config : new Config($config, $separator); |
| 82 | 82 | |
| 83 | 83 | $iterator = new ConfigIterator($config, $separator); |
| 84 | - $prefix = $prefix ? $prefix . $separator : ''; |
|
| 84 | + $prefix = $prefix ? $prefix.$separator : ''; |
|
| 85 | 85 | |
| 86 | 86 | foreach ($iterator as $key => $value) { |
| 87 | - $this->config[$prefix . $key] = $value; |
|
| 87 | + $this->config[$prefix.$key] = $value; |
|
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | $this->subProviders = $subProviders; |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | public function register() |
| 100 | 100 | { |
| 101 | 101 | foreach ($this->config as $key => $value) { |
| 102 | - $this->getContainer()->add($key, function () use ($value) { |
|
| 102 | + $this->getContainer()->add($key, function() use ($value) { |
|
| 103 | 103 | return $value; |
| 104 | 104 | }); |
| 105 | 105 | } |