@@ -25,14 +25,14 @@ |
||
25 | 25 | private function assertFileExists() |
26 | 26 | { |
27 | 27 | if (!file_exists($this->filename)) { |
28 | - throw new FileNotFoundException($this->filename . ' does not exist'); |
|
28 | + throw new FileNotFoundException($this->filename.' does not exist'); |
|
29 | 29 | } |
30 | 30 | } |
31 | 31 | |
32 | 32 | private function assertConfigIsValid($config) |
33 | 33 | { |
34 | 34 | if (!is_array($config)) { |
35 | - throw new InvalidConfigException($this->filename . ' does not return a PHP array'); |
|
35 | + throw new InvalidConfigException($this->filename.' does not return a PHP array'); |
|
36 | 36 | } |
37 | 37 | } |
38 | 38 | } |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | ]); |
77 | 77 | |
78 | 78 | $configs = array_map( |
79 | - function ($filename) use ($factory) { |
|
79 | + function($filename) use ($factory) { |
|
80 | 80 | $reader = $factory->create($filename); |
81 | 81 | return $reader->read($filename); |
82 | 82 | }, |
@@ -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 | } |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | |
174 | 174 | foreach ($value as $subkey => $subvalue) { |
175 | 175 | $expanded += $this->expandSubGroup( |
176 | - $key . $this->separator . $subkey, |
|
176 | + $key.$this->separator.$subkey, |
|
177 | 177 | $subvalue |
178 | 178 | ); |
179 | 179 | } |
@@ -203,8 +203,8 @@ discard block |
||
203 | 203 | private function addPrefix(array $keys) |
204 | 204 | { |
205 | 205 | return array_map( |
206 | - function ($key) { |
|
207 | - return $this->prefix . $this->separator . $key; |
|
206 | + function($key) { |
|
207 | + return $this->prefix.$this->separator.$key; |
|
208 | 208 | }, |
209 | 209 | $keys |
210 | 210 | ); |