| Conditions | 2 |
| Paths | 3 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 29 | public function handle(): void |
||
| 30 | { |
||
| 31 | try { |
||
| 32 | $array_nodi = $this->service->getClusterNodes($this->option('connection_name')); |
||
| 33 | $this->output->writeln(json_encode($array_nodi, JSON_THROW_ON_ERROR)); |
||
| 34 | } catch (\Throwable $e) { |
||
| 35 | Log::error('Errore durante il recupero dei nodi del cluster ' . $e->getMessage()); |
||
| 36 | $this->output->writeln(json_encode([], JSON_THROW_ON_ERROR)); |
||
| 37 | } |
||
| 40 |