Passed
Push — master ( be3cdd...180558 )
by Innocent
03:36
created
src/Notifications/Ministry/AccountCreated.php 1 patch
Spacing   +3 added lines, -3 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,10 +46,10 @@  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
-            ->greeting('Hello '.$this->ministry->name)
52
+            ->greeting('Hello ' . $this->ministry->name)
53 53
             ->subject('FaithGen account created!')
54 54
             ->from('[email protected]', 'Faith Gen')
55 55
             ->line('We have received your account registration request, please just activate your account to get started with us')
Please login to merge, or discard this patch.
src/Notifications/Ministry/AccountActivated.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
     /**
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     public function toMail($notifiable)
48 48
     {
49 49
         return (new MailMessage)
50
-            ->greeting('Hello '.$this->ministry->name)
50
+            ->greeting('Hello ' . $this->ministry->name)
51 51
             ->subject('Account activated')
52 52
             ->line('Your FaithGen account has been activated.')
53 53
             ->line('Please feel free to use our platform and always contact support if you miss something.')
Please login to merge, or discard this patch.
src/Providers/AuthServiceProvider.php 1 patch
Spacing   +4 added lines, -4 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
     /**
18 18
      * Register services.
@@ -36,12 +36,12 @@  discard block
 block discarded – undo
36 36
             Auth::guard('web')->loginUsingId($user_id);
37 37
         }
38 38
 
39
-        if (! config('faithgen-sdk.source')) {
40
-            Auth::viaRequest('api-key', function ($request) {
39
+        if (!config('faithgen-sdk.source')) {
40
+            Auth::viaRequest('api-key', function($request) {
41 41
                 $api_key = request()->headers->get('x-api-key');
42 42
                 $class = config('auth.providers.ministries.model');
43 43
 
44
-                return $class::whereHas('apiKey', function ($apiKey) use ($api_key) {
44
+                return $class::whereHas('apiKey', function($apiKey) use ($api_key) {
45 45
                     return $apiKey->where('api_key', $api_key);
46 46
                 })->first();
47 47
             });
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
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      */
34 34
     public function getUnsetFields()
35 35
     {
36
-        return ['image_id'];
36
+        return [ 'image_id' ];
37 37
     }
38 38
 
39 39
     /**
Please login to merge, or discard this patch.
src/Services/ProfileService.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
     public function getUnsetFields()
32 32
     {
33
-        return ['name', 'email', 'phone'];
33
+        return [ 'name', 'email', 'phone' ];
34 34
     }
35 35
 
36 36
     /**
Please login to merge, or discard this patch.
src/Listeners/Ministry/Profile/ImageSaved/ProcessImage.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -31,15 +31,15 @@
 block discarded – undo
31 31
      */
32 32
     public function handle(ImageSaved $event)
33 33
     {
34
-        $ogImage = storage_path('app/public/profile/original/').$event->getImage()->name;
35
-        $thumb100 = storage_path('app/public/profile/100-100/').$event->getImage()->name;
36
-        $thumb50 = storage_path('app/public/profile/50-50/').$event->getImage()->name;
34
+        $ogImage = storage_path('app/public/profile/original/') . $event->getImage()->name;
35
+        $thumb100 = storage_path('app/public/profile/100-100/') . $event->getImage()->name;
36
+        $thumb50 = storage_path('app/public/profile/50-50/') . $event->getImage()->name;
37 37
 
38
-        $this->imageManager->make($ogImage)->fit(100, 100, function ($constraint) {
38
+        $this->imageManager->make($ogImage)->fit(100, 100, function($constraint) {
39 39
             $constraint->upsize();
40 40
             $constraint->aspectRatio();
41 41
         }, 'center')->save($thumb100);
42
-        $this->imageManager->make($ogImage)->fit(50, 50, function ($constraint) {
42
+        $this->imageManager->make($ogImage)->fit(50, 50, function($constraint) {
43 43
             $constraint->upsize();
44 44
             $constraint->aspectRatio();
45 45
         }, 'center')->save($thumb50);
Please login to merge, or discard this patch.
src/Traits/ExcludesColumns.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,11 +11,11 @@
 block discarded – undo
11 11
      * @param array $columns
12 12
      * @return mixed
13 13
      */
14
-    public function scopeExclude($query, array $columns = [])
14
+    public function scopeExclude($query, array $columns = [ ])
15 15
     {
16 16
         $tableColumns = $this->getConnection()->getSchemaBuilder()->getColumnListing($this->getTable());
17 17
 
18
-        $requiredColumns = collect($tableColumns)->filter(fn ($column) => ! in_array($column, $columns))->toArray();
18
+        $requiredColumns = collect($tableColumns)->filter(fn($column) => !in_array($column, $columns))->toArray();
19 19
 
20 20
         return $query->select($requiredColumns);
21 21
     }
Please login to merge, or discard this patch.
src/Traits/ActiveTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 {
10 10
     public function getActiveAttribute($val)
11 11
     {
12
-        return (bool) $val;
12
+        return (bool)$val;
13 13
     }
14 14
 
15 15
     public function scopeActive($query)
Please login to merge, or discard this patch.
routes/api.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -6,26 +6,26 @@
 block discarded – undo
6 6
 use FaithGen\SDK\Http\Controllers\ReviewController;
7 7
 use Illuminate\Support\Facades\Route;
8 8
 
9
-Route::name('ministry.')->prefix('ministry/')->group(function () {
10
-    Route::post('social-link', [MinistryController::class, 'getSocialLink']);
11
-    Route::get('profile', [MinistryController::class, 'getProfile']);
12
-    Route::get('account-type', [MinistryController::class, 'accountType']);
9
+Route::name('ministry.')->prefix('ministry/')->group(function() {
10
+    Route::post('social-link', [ MinistryController::class, 'getSocialLink' ]);
11
+    Route::get('profile', [ MinistryController::class, 'getProfile' ]);
12
+    Route::get('account-type', [ MinistryController::class, 'accountType' ]);
13 13
 });
14 14
 
15
-Route::name('images.')->prefix('images')->group(function () {
16
-    Route::post('comment', [ImageController::class, 'comment']);
17
-    Route::get('comments/{image}', [ImageController::class, 'comments']);
15
+Route::name('images.')->prefix('images')->group(function() {
16
+    Route::post('comment', [ ImageController::class, 'comment' ]);
17
+    Route::get('comments/{image}', [ ImageController::class, 'comments' ]);
18 18
 });
19 19
 
20 20
 Route::prefix('reviews')
21
-    ->group(function () {
22
-        Route::post('', [ReviewController::class, 'sendReview']);
21
+    ->group(function() {
22
+        Route::post('', [ ReviewController::class, 'sendReview' ]);
23 23
     });
24 24
 
25
-if (! config('faithgen-sdk.source')) {
25
+if (!config('faithgen-sdk.source')) {
26 26
     Route::prefix('comments')
27
-        ->group(function () {
28
-            Route::post('presence', [CommentController::class, 'presenceRegister']);
29
-            Route::post('typing', [CommentController::class, 'showTyping']);
27
+        ->group(function() {
28
+            Route::post('presence', [ CommentController::class, 'presenceRegister' ]);
29
+            Route::post('typing', [ CommentController::class, 'showTyping' ]);
30 30
         });
31 31
 }
Please login to merge, or discard this patch.