Total Complexity | 3 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 9 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | class RouteListCommand extends Command |
||
19 | { |
||
20 | /** @var string */ |
||
21 | protected $signature = 'route:list'; |
||
22 | |||
23 | /** @var string */ |
||
24 | protected $description = 'Display all the registered routes'; |
||
25 | |||
26 | public function handle(): int |
||
27 | { |
||
28 | $routes = $this->generate(); |
||
29 | |||
30 | $this->table($this->makeHeader($routes), $routes); |
||
31 | |||
32 | return Command::SUCCESS; |
||
33 | } |
||
34 | |||
35 | protected function generate(): array |
||
38 | } |
||
39 | |||
40 | protected function makeHeader(array $routes): array |
||
45 |