Skip to content

Commit

Permalink
CS:FIX
Browse files Browse the repository at this point in the history
  • Loading branch information
overclokk committed May 30, 2024
1 parent ee2a2a2 commit 9a384b4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Infrastructure/Filesystem/JsonFileWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ public function write(ConfigInterface $data): void
}

// This part is borrowed from \Composer\Json\JsonFile
$json_data = \json_encode($data->toArray(), \JSON_UNESCAPED_SLASHES | \JSON_PRETTY_PRINT | \JSON_UNESCAPED_UNICODE);
$json_data = \json_encode(
$data->toArray(),
\JSON_UNESCAPED_SLASHES | \JSON_PRETTY_PRINT | \JSON_UNESCAPED_UNICODE
);
if (false === $json_data) {
throw new \RuntimeException('Error encoding JSON data');
}
Expand Down

0 comments on commit 9a384b4

Please sign in to comment.