From 6555206d30a96e05308e74eaa612747f650a68b1 Mon Sep 17 00:00:00 2001 From: freekmurze Date: Fri, 19 Nov 2021 18:40:30 +0000 Subject: [PATCH] Fix styling --- src/Report.php | 2 +- tests/ReportTest.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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