@@ -35,7 +35,7 @@ discard block |
||
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 |
||
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') |
@@ -35,7 +35,7 @@ discard block |
||
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 |
||
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.') |
@@ -12,7 +12,7 @@ discard block |
||
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 |
||
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 | }); |
@@ -33,7 +33,7 @@ |
||
33 | 33 | */ |
34 | 34 | public function getUnsetFields() |
35 | 35 | { |
36 | - return ['image_id']; |
|
36 | + return [ 'image_id' ]; |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
@@ -30,7 +30,7 @@ |
||
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 | /** |
@@ -31,15 +31,15 @@ |
||
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); |
@@ -48,9 +48,9 @@ |
||
48 | 48 | if ($this->user->image()->exists()) { |
49 | 49 | $fileName = $this->user->image->name; |
50 | 50 | } else { |
51 | - $fileName = str_shuffle($this->user->id.time().time()).'.png'; |
|
51 | + $fileName = str_shuffle($this->user->id . time() . time()) . '.png'; |
|
52 | 52 | } |
53 | - $ogSave = storage_path('app/public/users/original/').$fileName; |
|
53 | + $ogSave = storage_path('app/public/users/original/') . $fileName; |
|
54 | 54 | $imageManager->make($this->image)->save($ogSave); |
55 | 55 | $this->user->image()->updateOrcreate([ |
56 | 56 | 'imageable_id' => $this->user->id, |
@@ -39,10 +39,10 @@ |
||
39 | 39 | public function handle(ImageManager $imageManager) |
40 | 40 | { |
41 | 41 | if ($this->user->image()->exists()) { |
42 | - $ogImage = storage_path('app/public/users/original/').$this->user->image->name; |
|
43 | - $thumb50 = storage_path('app/public/users/50-50/').$this->user->image->name; |
|
42 | + $ogImage = storage_path('app/public/users/original/') . $this->user->image->name; |
|
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); |
@@ -11,11 +11,11 @@ |
||
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 | } |