Improve service-templates.json file readability
This commit is contained in:
parent
d031911ada
commit
91a1fdcb9a
1 changed files with 2 additions and 2 deletions
|
|
@ -39,8 +39,8 @@ public function handle()
|
|||
$serviceTemplatesJson[$name] = $parsed;
|
||||
}
|
||||
}
|
||||
$serviceTemplatesJson = json_encode($serviceTemplatesJson);
|
||||
file_put_contents(base_path('templates/service-templates.json'), $serviceTemplatesJson);
|
||||
$serviceTemplatesJson = json_encode($serviceTemplatesJson, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
|
||||
file_put_contents(base_path('templates/service-templates.json'), $serviceTemplatesJson.PHP_EOL);
|
||||
}
|
||||
|
||||
private function process_file($file)
|
||||
|
|
|
|||
Loading…
Reference in a new issue