Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvanassche authored and actions-user committed Dec 23, 2021
1 parent 76cb55b commit 29f1be7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Context/LaravelRequestContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ protected function getRouteParameters(): array
->map(function ($parameter) {
return $parameter instanceof Model ? $parameter->withoutRelations() : $parameter;
})
->map(function ($parameter){
->map(function ($parameter) {
return method_exists($parameter, 'toFlare') ? $parameter->toFlare() : $parameter;
})
->toArray();
Expand Down
4 changes: 2 additions & 2 deletions tests/Context/LaravelRequestContextTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,14 @@ public function it_will_call_the_to_flare_method_on_route_parameters_when_it_exi
$route->bind($request);

$request->setRouteResolver(function () use ($route) {
$route->setParameter('user', new class{
$route->setParameter('user', new class () {
public function toFlare(): array
{
return ['stripped'];
}
});

return $route;
return $route;
});

$context = new LaravelRequestContext($request);
Expand Down

0 comments on commit 29f1be7

Please sign in to comment.