Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Commit

Permalink
add EOF while saving
Browse files Browse the repository at this point in the history
  • Loading branch information
saiht committed Sep 6, 2019
1 parent 9fb5599 commit eb671bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controllers/SaveFileContentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function __invoke(FileContentsRequest $request)

$this->ensureFileExistInProject($filePath);

file_put_contents($filePath, $request->get('value'));
file_put_contents($filePath, rtrim($request->get('value')).PHP_EOL);

return ['saved' => true];
}
Expand Down

0 comments on commit eb671bd

Please sign in to comment.