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 | * @return mixed |
||
28 | */ |
||
29 | public function fire() |
||
33 | |||
34 | /** |
||
35 | * Get table rows. |
||
36 | * |
||
37 | * @return array |
||
38 | */ |
||
39 | public function getRows() |
||
54 | |||
55 | public function getModules() |
||
75 | |||
76 | /** |
||
77 | * Get the console command options. |
||
78 | * |
||
79 | * @return array |
||
80 | */ |
||
81 | 16 | protected function getOptions() |
|
88 | } |
||
89 |
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.