Improve service-templates.json file readability

This commit is contained in:
Lucas Michot
2024-10-10 10:05:35 +02:00
parent d031911ada
commit 91a1fdcb9a

View File

@@ -39,8 +39,8 @@ class ServicesGenerate extends Command
$serviceTemplatesJson[$name] = $parsed; $serviceTemplatesJson[$name] = $parsed;
} }
} }
$serviceTemplatesJson = json_encode($serviceTemplatesJson); $serviceTemplatesJson = json_encode($serviceTemplatesJson, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
file_put_contents(base_path('templates/service-templates.json'), $serviceTemplatesJson); file_put_contents(base_path('templates/service-templates.json'), $serviceTemplatesJson.PHP_EOL);
} }
private function process_file($file) private function process_file($file)