| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 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 | } |
||
| 49 |