| Conditions | 3 |
| Paths | 3 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | protected function execute(InputInterface $input, OutputInterface $output): int |
||
| 26 | { |
||
| 27 | $resp = $this->client->integration()->ips(); |
||
| 28 | $data = array_merge($resp['ipRanges'], $resp['ipv6Ranges']); |
||
| 29 | |||
| 30 | if (true === $input->getOption('json')) { |
||
| 31 | $output->write(json_encode($data)); |
||
| 32 | |||
| 33 | return 0; |
||
| 34 | } |
||
| 35 | |||
| 36 | $table = new Table($output); |
||
| 37 | foreach ($data as $range) { |
||
| 38 | $table->addRow([$range]); |
||
| 39 | } |
||
| 40 | $table->render(); |
||
| 41 | |||
| 42 | return 0; |
||
| 43 | } |
||
| 45 |