Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php namespace Tarsana\Command\Config; |
||
25 | public function load(array $paths) : ConfigInterface |
||
26 | { |
||
27 | if (empty($paths)) |
||
28 | return new Config([]); |
||
29 | $data = []; |
||
30 | foreach ($paths as $path) { |
||
31 | $data[] = $this->decode($path); |
||
32 | } |
||
33 | $data = call_user_func_array('array_replace_recursive', $data); |
||
34 | return new Config($data); |
||
35 | } |
||
36 | |||
49 |