Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze authored and actions-user committed Nov 19, 2021
1 parent 4d0b9be commit 6555206
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Report.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
);

Expand Down
8 changes: 4 additions & 4 deletions tests/ReportTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6555206

Please sign in to comment.