| Total Complexity | 8 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class ListCommand extends Command |
||
| 8 | { |
||
| 9 | /** @var string */ |
||
| 10 | protected $signature = 'module:list |
||
| 11 | {--o|only= : The types of modules to list (enabled, disabled, or ordered)} |
||
| 12 | {--d|direction=asc : he direction to order the modules (only applies to --only=ordered)}'; |
||
| 13 | |||
| 14 | /** @var string */ |
||
| 15 | protected $description = 'Show a list of all modules.'; |
||
| 16 | |||
| 17 | public function handle(): void |
||
| 18 | { |
||
| 19 | $this->table(['Name', 'Status', 'Order', 'Path'], $this->getRows()); |
||
| 20 | } |
||
| 21 | |||
| 22 | private function getModules(): array |
||
| 33 | } |
||
| 34 | } |
||
| 35 | |||
| 36 | private function getRows(): array |
||
| 53 |