| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function getControllers(ModuleEnum $module, bool $isViewController): array |
||
| 15 | { |
||
| 16 | $controllers = Init::getContainer()->get($this->getContainerIdentifier($module->name, $isViewController)); |
||
|
|
|||
| 17 | |||
| 18 | $commonModule = $module->getCommonModule(); |
||
| 19 | if ($commonModule === null) { |
||
| 20 | return $controllers; |
||
| 21 | } |
||
| 22 | |||
| 23 | return array_merge(Init::getContainer()->get($this->getContainerIdentifier($commonModule, $isViewController)), $controllers); |
||
| 24 | } |
||
| 35 |