Passed
Push — master ( 0fe0e0...2b8d14 )
by Innocent
03:27
created
src/Models/User.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
     use StorageTrait;
19 19
 
20 20
     protected $table = 'fg_users';
21
-    protected $guarded = ['id'];
21
+    protected $guarded = [ 'id' ];
22 22
     public $incrementing = false;
23 23
     protected $hidden = [
24 24
         'password',
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
     public function getMinistriesAttribute()
53 53
     {
54
-        return Ministry::whereHas('ministryUsers', function ($minUser) {
54
+        return Ministry::whereHas('ministryUsers', function($minUser) {
55 55
             return $minUser->where('user_id', $this->id);
56 56
         });
57 57
     }
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     public function getActiveAttribute(): bool
60 60
     {
61 61
         if ($user = $this->ministryUsers()->where('ministry_id', auth()->user()->id)->first()) {
62
-            return (bool) $user->active;
62
+            return (bool)$user->active;
63 63
         }
64 64
 
65 65
         return false;
@@ -80,6 +80,6 @@  discard block
 block discarded – undo
80 80
 
81 81
     public function getImageDimensions()
82 82
     {
83
-        return [0, 50];
83
+        return [ 0, 50 ];
84 84
     }
85 85
 }
Please login to merge, or discard this patch.
src/Models/Ministry/Review.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,5 +10,5 @@
 block discarded – undo
10 10
     use BelongsToMinistryTrait;
11 11
 
12 12
     protected $table = 'fg_reviews';
13
-    protected $guarded = ['id'];
13
+    protected $guarded = [ 'id' ];
14 14
 }
Please login to merge, or discard this patch.
src/Models/Ministry.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     use CreatableTrait;
26 26
 
27 27
     protected $table = 'fg_ministries';
28
-    protected $guarded = ['id'];
28
+    protected $guarded = [ 'id' ];
29 29
     public $incrementing = false;
30 30
     protected $hidden = [
31 31
         'password',
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
     public function getJWTCustomClaims()
42 42
     {
43
-        return [];
43
+        return [ ];
44 44
     }
45 45
 
46 46
     /**
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 
109 109
             return $phones;
110 110
         } else {
111
-            return [$this->phone];
111
+            return [ $this->phone ];
112 112
         }
113 113
     }
114 114
 
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 
121 121
             return $emails;
122 122
         } else {
123
-            return [$this->email];
123
+            return [ $this->email ];
124 124
         }
125 125
     }
126 126
 
Please login to merge, or discard this patch.