Passed
Push — master ( feee53...6160a4 )
by Innocent
10:45
created
src/Models/Ministry.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     use ManyMinistryUsers;
25 25
     use CreatableTrait;
26 26
 
27
-    protected $guarded = ['id'];
27
+    protected $guarded = [ 'id' ];
28 28
     public $incrementing = false;
29 29
     protected $hidden = [
30 30
         'password',
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 
40 40
     function getJWTCustomClaims()
41 41
     {
42
-        return [];
42
+        return [ ];
43 43
     }
44 44
 
45 45
     /**
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
             $phones = $this->profile->phones;
105 105
             array_unshift($phones, $this->phone);
106 106
             return $phones;
107
-        } else return [$this->phone];
107
+        } else return [ $this->phone ];
108 108
     }
109 109
 
110 110
     function getEmailsAttribute()
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
             $emails = $this->profile->emails;
114 114
             array_unshift($emails, $this->email);
115 115
             return $emails;
116
-        } else return [$this->email];
116
+        } else return [ $this->email ];
117 117
     }
118 118
 
119 119
     /**
Please login to merge, or discard this patch.
src/Models/UuidModel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@
 block discarded – undo
18 18
     protected static function boot()
19 19
     {
20 20
         parent::boot();
21
-        self::creating(function ($user) {
22
-            $user->id = str_shuffle((string) Str::uuid());
21
+        self::creating(function($user) {
22
+            $user->id = str_shuffle((string)Str::uuid());
23 23
         });
24 24
     }
25 25
 }
Please login to merge, or discard this patch.
src/Notifications/Ministry/ForgotPassword.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
      */
35 35
     public function via($notifiable)
36 36
     {
37
-        return ['mail'];
37
+        return [ 'mail' ];
38 38
     }
39 39
 
40 40
     /**
Please login to merge, or discard this patch.
src/Notifications/Ministry/AccountActivated.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
      */
36 36
     public function via($notifiable)
37 37
     {
38
-        return ['mail'];
38
+        return [ 'mail' ];
39 39
     }
40 40
 
41 41
     /**
Please login to merge, or discard this patch.
src/Notifications/Ministry/AccountCreated.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      */
36 36
     public function via($notifiable)
37 37
     {
38
-        return ['mail'];
38
+        return [ 'mail' ];
39 39
     }
40 40
 
41 41
     /**
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function toMail($notifiable)
48 48
     {
49
-        $url = url('/auth/activate/'.$this->ministry->id . '/' . $this->ministry->activation->code);
49
+        $url = url('/auth/activate/' . $this->ministry->id . '/' . $this->ministry->activation->code);
50 50
 
51 51
         return (new MailMessage)
52 52
             ->greeting('Hello ' . $this->ministry->name)
Please login to merge, or discard this patch.
src/Jobs/Users/ProcessImage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
             $ogImage = storage_path('app/public/users/original/') . $this->user->image->name;
43 43
             $thumb50 = storage_path('app/public/users/50-50/') . $this->user->image->name;
44 44
 
45
-            $imageManager->make($ogImage)->fit(50, 50, function ($constraint) {
45
+            $imageManager->make($ogImage)->fit(50, 50, function($constraint) {
46 46
                 $constraint->upsize();
47 47
                 $constraint->aspectRatio();
48 48
             }, 'center')->save($thumb50);
Please login to merge, or discard this patch.
src/Providers/AuthServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
      *
13 13
      * @var array
14 14
      */
15
-    protected $policies = [];
15
+    protected $policies = [ ];
16 16
     /**
17 17
      * Register services.
18 18
      *
@@ -36,10 +36,10 @@  discard block
 block discarded – undo
36 36
         }
37 37
 
38 38
         if (!config('faithgen-sdk.source'))
39
-            Auth::viaRequest('api-key', function ($request) {
39
+            Auth::viaRequest('api-key', function($request) {
40 40
                 $api_key = request()->headers->get('x-api-key');
41 41
                 $class = config('auth.providers.ministries.model');
42
-                return $class::whereHas('apiKey', function ($apiKey) use ($api_key) {
42
+                return $class::whereHas('apiKey', function($apiKey) use ($api_key) {
43 43
                     return $apiKey->where('api_key', $api_key);
44 44
                 })->first();
45 45
             });
Please login to merge, or discard this patch.
src/Listeners/Ministry/Profile/ImageSaved/ProcessImage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,11 +36,11 @@
 block discarded – undo
36 36
         $thumb100 = storage_path('app/public/profile/100-100/') . $event->getImage()->name;
37 37
         $thumb50 = storage_path('app/public/profile/50-50/') . $event->getImage()->name;
38 38
 
39
-        $this->imageManager->make($ogImage)->fit(100, 100, function ($constraint) {
39
+        $this->imageManager->make($ogImage)->fit(100, 100, function($constraint) {
40 40
             $constraint->upsize();
41 41
             $constraint->aspectRatio();
42 42
         }, 'center')->save($thumb100);
43
-        $this->imageManager->make($ogImage)->fit(50, 50, function ($constraint) {
43
+        $this->imageManager->make($ogImage)->fit(50, 50, function($constraint) {
44 44
             $constraint->upsize();
45 45
             $constraint->aspectRatio();
46 46
         }, 'center')->save($thumb50);
Please login to merge, or discard this patch.
src/Services/ImageService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      */
31 31
     function getUnsetFields()
32 32
     {
33
-        return ['image_id'];
33
+        return [ 'image_id' ];
34 34
     }
35 35
 
36 36
     /**
Please login to merge, or discard this patch.