Skip to content

Commit

Permalink
Get rid of unnecessary backslashes in studio.json, too.
Browse files Browse the repository at this point in the history
Related to #7.
  • Loading branch information
franzliedke committed Mar 17, 2015
1 parent d36ee42 commit da992ed
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Config/FileStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ public function load()

protected function writeToFile(array $data)
{
file_put_contents($this->file, json_encode($data, JSON_PRETTY_PRINT));
file_put_contents(
$this->file,
json_encode(
$data,
JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE
)
);
}

protected function readFromFile()
Expand Down

0 comments on commit da992ed

Please sign in to comment.