Skip to content

Commit 91a1fdc

Browse files
committed
Improve service-templates.json file readability
1 parent d031911 commit 91a1fdc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Console/Commands/ServicesGenerate.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ public function handle()
3939
$serviceTemplatesJson[$name] = $parsed;
4040
}
4141
}
42-
$serviceTemplatesJson = json_encode($serviceTemplatesJson);
43-
file_put_contents(base_path('templates/service-templates.json'), $serviceTemplatesJson);
42+
$serviceTemplatesJson = json_encode($serviceTemplatesJson, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
43+
file_put_contents(base_path('templates/service-templates.json'), $serviceTemplatesJson.PHP_EOL);
4444
}
4545

4646
private function process_file($file)

0 commit comments

Comments
 (0)