| Conditions | 2 |
| Paths | 2 |
| Total Lines | 19 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 13 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | 3 | protected function execute(InputInterface $input, OutputInterface $output): int |
|
| 30 | { |
||
| 31 | 3 | $filter = (string)$input->getArgument('filter'); |
|
| 32 | 3 | $modules = $this->getFacade()->findAllAppModules($filter); |
|
| 33 | |||
| 34 | 3 | $table = new Table($output); |
|
| 35 | 3 | $table->setHeaders(['Module', 'Facade']); |
|
| 36 | |||
| 37 | 3 | foreach ($modules as $module) { |
|
| 38 | 3 | $table->addRow([ |
|
| 39 | 3 | $module->moduleName(), |
|
| 40 | 3 | $module->facadeClass(), |
|
| 41 | 3 | ]); |
|
| 42 | } |
||
| 43 | |||
| 44 | 3 | $output->writeln('Modules found:'); |
|
| 45 | 3 | $table->render(); |
|
| 46 | |||
| 47 | 3 | return self::SUCCESS; |
|
| 48 | } |
||
| 50 |