| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | 1 | public function load(string $module, string $conf = ''): ?array |
|
| 27 | { |
||
| 28 | 1 | foreach ($this->confs as $confClassName => $confClass) { |
|
| 29 | 1 | if ($confClass->getConfName() == $module) { |
|
| 30 | 1 | $confClass->setPart($conf); |
|
| 31 | 1 | return $confClass->getSettings(); |
|
| 32 | } |
||
| 33 | } |
||
| 34 | 1 | return null; |
|
| 35 | } |
||
| 37 |