@@ -30,7 +30,7 @@ |
||
30 | 30 | |
31 | 31 | return match ($this->option('format')) { |
32 | 32 | 'txt' => $this->table($this->makeHeader($routes), $routes) ?? Command::SUCCESS, |
33 | - 'json' => $this->writeRaw(json_encode($routes, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES)) ?? Command::SUCCESS, |
|
33 | + 'json' => $this->writeRaw(json_encode($routes, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES)) ?? Command::SUCCESS, |
|
34 | 34 | default => $this->error("Invalid format provided. Only 'txt' and 'json' are supported.") ?? Command::FAILURE, |
35 | 35 | }; |
36 | 36 | } |