1 | <?php |
||
8 | class ListCommand extends Command |
||
9 | { |
||
10 | /** |
||
11 | * The console command name. |
||
12 | * |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $name = 'module:list'; |
||
16 | |||
17 | /** |
||
18 | * The console command description. |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $description = 'Show list of all modules.'; |
||
23 | |||
24 | /** |
||
25 | * Execute the console command. |
||
26 | */ |
||
27 | public function handle() |
||
28 | { |
||
29 | $this->table(['Name', 'Status', 'Order', 'Path'], $this->getRows()); |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * Get table rows. |
||
34 | * |
||
35 | * @return array |
||
36 | */ |
||
37 | public function getRows() |
||
52 | |||
53 | public function getModules() |
||
73 | |||
74 | /** |
||
75 | * Get the console command options. |
||
76 | * |
||
77 | * @return array |
||
78 | */ |
||
79 | 56 | protected function getOptions() |
|
86 | } |
||
87 |
The break statement is not necessary if it is preceded for example by a return statement:
If you would like to keep this construct to be consistent with other case statements, you can safely mark this issue as a false-positive.