| Conditions | 2 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | 2 | public function load(array $locations, array $sources): array |
|
| 25 | { |
||
| 26 | return array_reduce($locations, function (array $config, string $location) use ($sources): array { |
||
| 27 | 2 | if (substr($location, -1) !== '/') { |
|
| 28 | 2 | $location .= '/'; |
|
| 29 | } |
||
| 30 | 2 | return array_replace_recursive($config, $this->loadSources($location, $sources)); |
|
| 31 | 2 | }, []); |
|
| 32 | } |
||
| 33 | |||
| 45 |