@@ -24,7 +24,7 @@ discard block |
||
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 |
||
39 | 39 | |
40 | 40 | function getJWTCustomClaims() |
41 | 41 | { |
42 | - return []; |
|
42 | + return [ ]; |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | /** |
@@ -104,7 +104,7 @@ discard block |
||
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 |
||
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 | /** |
@@ -18,8 +18,8 @@ |
||
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 | } |
@@ -34,7 +34,7 @@ |
||
34 | 34 | */ |
35 | 35 | public function via($notifiable) |
36 | 36 | { |
37 | - return ['mail']; |
|
37 | + return [ 'mail' ]; |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | /** |
@@ -35,7 +35,7 @@ |
||
35 | 35 | */ |
36 | 36 | public function via($notifiable) |
37 | 37 | { |
38 | - return ['mail']; |
|
38 | + return [ 'mail' ]; |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | /** |
@@ -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,7 +46,7 @@ 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 | 52 | ->greeting('Hello ' . $this->ministry->name) |
@@ -42,7 +42,7 @@ |
||
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); |
@@ -12,7 +12,7 @@ discard block |
||
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 |
||
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 | }); |
@@ -36,11 +36,11 @@ |
||
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); |
@@ -30,7 +30,7 @@ |
||
30 | 30 | */ |
31 | 31 | function getUnsetFields() |
32 | 32 | { |
33 | - return ['image_id']; |
|
33 | + return [ 'image_id' ]; |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | /** |