Conditions | 4 |
Paths | 4 |
Total Lines | 11 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | private function getModules(): array |
||
23 | { |
||
24 | switch ($this->option('only')) { |
||
25 | case 'disabled': |
||
26 | return $this->laravel['modules']->getByStatus(false); |
||
27 | case 'enabled': |
||
28 | return $this->laravel['modules']->getByStatus(true); |
||
29 | case 'ordered': |
||
30 | return $this->laravel['modules']->getOrdered($this->option('direction')); |
||
31 | default: |
||
32 | return $this->laravel['modules']->all(); |
||
33 | } |
||
53 |