| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 25 | 1 | public function handle(): void |
|
| 26 | { |
||
| 27 | /** @var ChannelManager $manager */ |
||
| 28 | 1 | $manager = resolve(ChannelManager::class); |
|
| 29 | |||
| 30 | 1 | $channels = collect($manager->all()) |
|
| 31 | 1 | ->map(function ($item, $name) { |
|
| 32 | 1 | return [$name, $item['driver'], '/channels/'.$name]; |
|
| 33 | 1 | }) |
|
| 34 | 1 | ->toArray(); |
|
| 35 | |||
| 36 | 1 | $table = new Table($this->output); |
|
| 37 | $table |
||
| 38 | 1 | ->setHeaders(['Name', 'Driver', 'Route']) |
|
| 39 | 1 | ->setRows($channels) |
|
| 40 | 1 | ->render(); |
|
| 41 | 1 | } |
|
| 42 | } |
||
| 43 |