@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | try { |
| 70 | 70 | $data = json_decode($json, true, 512, JSON_THROW_ON_ERROR); |
| 71 | 71 | |
| 72 | - $format = $this->choice('Seleccione formato:', ['compact', 'readable', 'tabular']); |
|
| 72 | + $format = $this->choice('Seleccione formato:', [ 'compact', 'readable', 'tabular' ]); |
|
| 73 | 73 | $result = $toonService->convert($data, $format); |
| 74 | 74 | |
| 75 | 75 | $this->newLine(); |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | $this->info("✓ Guardado en: {$filename}"); |
| 83 | 83 | } |
| 84 | 84 | } catch (\Exception $e) { |
| 85 | - $this->error('Error: '.$e->getMessage()); |
|
| 85 | + $this->error('Error: ' . $e->getMessage()); |
|
| 86 | 86 | } |
| 87 | 87 | } |
| 88 | 88 | |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | |
| 99 | 99 | try { |
| 100 | 100 | $data = $toonService->decode($toon); |
| 101 | - $json = json_encode($data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES); |
|
| 101 | + $json = json_encode($data, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES); |
|
| 102 | 102 | |
| 103 | 103 | $this->newLine(); |
| 104 | 104 | $this->info('Resultado JSON:'); |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | $this->info("✓ Guardado en: {$filename}"); |
| 111 | 111 | } |
| 112 | 112 | } catch (\Exception $e) { |
| 113 | - $this->error('Error: '.$e->getMessage()); |
|
| 113 | + $this->error('Error: ' . $e->getMessage()); |
|
| 114 | 114 | } |
| 115 | 115 | } |
| 116 | 116 | |
@@ -130,20 +130,20 @@ discard block |
||
| 130 | 130 | |
| 131 | 131 | $this->newLine(); |
| 132 | 132 | $this->info(' |