Conditions | 2 |
Paths | 2 |
Total Lines | 18 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 12 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | 1 | protected function execute(InputInterface $input, OutputInterface $output): int |
|
28 | { |
||
29 | 1 | $modules = $this->getFacade()->findAllAppModules(); |
|
30 | |||
31 | 1 | $table = new Table($output); |
|
32 | 1 | $table->setHeaders(['class_name', 'namespace']); |
|
33 | |||
34 | 1 | foreach ($modules as $module) { |
|
35 | 1 | $table->addRow([ |
|
36 | 1 | $module->className(), |
|
37 | 1 | $module->fullyQualifiedClassName(), |
|
38 | 1 | ]); |
|
39 | } |
||
40 | |||
41 | 1 | $output->writeln('Modules found:'); |
|
42 | 1 | $table->render(); |
|
43 | |||
44 | 1 | return self::SUCCESS; |
|
45 | } |
||
47 |