Conditions | 3 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | public function getConfig(): array |
||
28 | { |
||
29 | if (empty($this->config)) { |
||
30 | $yamlParser = new Parser(); |
||
31 | $files = $this->getFileNames(); |
||
32 | $config = []; |
||
33 | foreach ($files as $file) { |
||
34 | $fileConfig = $yamlParser->parseFile($file); |
||
35 | $config = \array_merge($config, $fileConfig); |
||
36 | } |
||
37 | $this->config = $config; |
||
38 | } |
||
39 | return $this->config; |
||
40 | } |
||
41 | } |