Skip to content

Commit

Permalink
Merge pull request coollabsio#3826 from lucasmichot/feat/template-rea…
Browse files Browse the repository at this point in the history
…dability

Improve `service-templates.json` file readability
  • Loading branch information
andrasbacsai authored Oct 10, 2024
2 parents d69164b + 91a1fdc commit 1de5022
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Console/Commands/ServicesGenerate.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1de5022

Please sign in to comment.