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

Commit eb671bd

Browse files
committed
add EOF while saving
1 parent 9fb5599 commit eb671bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Controllers/SaveFileContentController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function __invoke(FileContentsRequest $request)
1717

1818
$this->ensureFileExistInProject($filePath);
1919

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

2222
return ['saved' => true];
2323
}

0 commit comments

Comments
 (0)