Conditions | 3 |
Paths | 8 |
Total Lines | 20 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
48 | protected function execute(InputInterface $input, OutputInterface $output): int |
||
49 | { |
||
50 | $io = new SymfonyStyle($input, $output); |
||
51 | |||
52 | try { |
||
53 | $data = $this->centrifugo->channels(); |
||
54 | |||
55 | if (!empty($data['channels'])) { |
||
56 | $io->title('Channels'); |
||
57 | $io->listing($data['channels']); |
||
58 | $io->newLine(); |
||
59 | } else { |
||
60 | $io->success('NO DATA'); |
||
61 | } |
||
62 | } catch (\Exception $e) { |
||
63 | $io->error($e->getMessage()); |
||
64 | } |
||
65 | |||
66 | return 0; |
||
67 | } |
||
68 | } |
||
69 |