Skip to content

Commit

Permalink
Apply fixes from StyleCI (#322)
Browse files Browse the repository at this point in the history
  • Loading branch information
binaryk authored Dec 21, 2020
1 parent e36d413 commit 7b85d3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Fields/EagerField.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ public function resolve($repository, $attribute = null)
->allowToShow(app(Request::class))
->eagerState();
} catch (AuthorizationException $e) {
if(is_null($relatedModel)) {
abort(403, "You are not authorized to perform this action.");
if (is_null($relatedModel)) {
abort(403, 'You are not authorized to perform this action.');
}

$class = get_class($relatedModel);
Expand Down

0 comments on commit 7b85d3b

Please sign in to comment.