Passed
Push — master ( 85c419...35703b )
by Arthur
07:22
created
src/Foundation/Policies/OwnershipPolicy.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,8 +102,9 @@
 block discarded – undo
102 102
     */
103 103
     public function before($user, $ability)
104 104
     {
105
-        if ($user->isAdmin())
106
-            return true;
105
+        if ($user->isAdmin()) {
106
+                    return true;
107
+        }
107 108
     }
108 109
 
109 110
 }
Please login to merge, or discard this patch.
src/Foundation/Traits/HandlesOwnership.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,8 +16,9 @@
 block discarded – undo
16 16
 {
17 17
     public function isOwner(?Ownable $model){
18 18
 
19
-        if($model === null)
20
-            throw new NotFoundHttpException("Could not found resouce.");
19
+        if($model === null) {
20
+                    throw new NotFoundHttpException("Could not found resouce.");
21
+        }
21 22
 
22 23
         $this->authorize('access', $model);
23 24
     }
Please login to merge, or discard this patch.