diff --git a/src/Report.php b/src/Report.php index 2e1cf39..c29c107 100644 --- a/src/Report.php +++ b/src/Report.php @@ -17,7 +17,7 @@ public static function fromJson(string $json): Report $properties = json_decode($json, true); $lines = array_map( - fn(array $lineProperties) => new Line(...$lineProperties), + fn (array $lineProperties) => new Line(...$lineProperties), $properties['lines'], ); diff --git a/tests/ReportTest.php b/tests/ReportTest.php index 3121314..3fedadb 100644 --- a/tests/ReportTest.php +++ b/tests/ReportTest.php @@ -10,12 +10,12 @@ assertMatchesSnapshot($report->toJson()); }); -it('can be created from json', function() { - $json = getReport()->toJson(); +it('can be created from json', function () { + $json = getReport()->toJson(); - $newReport = Report::fromJson($json); + $newReport = Report::fromJson($json); - expect($newReport->toJson())->toBe($json); + expect($newReport->toJson())->toBe($json); }); function getReport(): Report