Passed
Push — master ( 95bd7d...243c10 )
by Quim González
04:15
created
app/Http/Requests/Traits/ChecksPermissions.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,9 @@  discard block
 block discarded – undo
19 19
      */
20 20
     protected function hasPermissionTo($permission)
21 21
     {
22
-        if (Auth::user()->hasPermissionTo($permission)) return true;
22
+        if (Auth::user()->hasPermissionTo($permission)) {
23
+            return true;
24
+        }
23 25
         return false;
24 26
     }
25 27
 
@@ -35,7 +37,9 @@  discard block
 block discarded – undo
35 37
     {
36 38
         //todo
37 39
 
38
-        if (Auth::user()->id == $this->$model->$field) return true;
40
+        if (Auth::user()->id == $this->$model->$field) {
41
+            return true;
42
+        }
39 43
         return false;
40 44
     }
41 45
 }
42 46
\ No newline at end of file
Please login to merge, or discard this patch.