| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | 1 | public function __invoke() : Config |
|
| 33 | { |
||
| 34 | 1 | $config = []; |
|
| 35 | |||
| 36 | 1 | foreach ($this->configLoaders as $configLoader) { |
|
| 37 | /* @var $subConfig Config */ |
||
| 38 | 1 | $subConfig = $configLoader(); |
|
| 39 | |||
| 40 | 1 | $config = self::arrayMerge($config, $subConfig->toArray()); |
|
| 41 | } |
||
| 42 | |||
| 43 | 1 | return Config::fromArray($config); |
|
| 44 | } |
||
| 45 | } |
||
| 46 |