From 7b85d3b7cc34b4db1136d38dd094c660a1bcaef5 Mon Sep 17 00:00:00 2001 From: Lupacescu Eduard Date: Mon, 21 Dec 2020 17:51:58 +0200 Subject: [PATCH] Apply fixes from StyleCI (#322) --- src/Fields/EagerField.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Fields/EagerField.php b/src/Fields/EagerField.php index 24c56f1c..ed37281c 100644 --- a/src/Fields/EagerField.php +++ b/src/Fields/EagerField.php @@ -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);