@@ -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 | }); |
@@ -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); |
@@ -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 | } |
@@ -9,7 +9,7 @@ |
||
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) |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('fg_ministries', function (Blueprint $table) { |
|
16 | + Schema::create('fg_ministries', function(Blueprint $table) { |
|
17 | 17 | $table->string('id', 150)->primary(); |
18 | 18 | $table->string('name'); |
19 | 19 | $table->string('email', 150)->unique(); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('fg_users', function (Blueprint $table) { |
|
16 | + Schema::create('fg_users', function(Blueprint $table) { |
|
17 | 17 | $table->string('id', 150)->primary(); |
18 | 18 | $table->string('name'); |
19 | 19 | $table->string('email', 150)->nullable(); |
@@ -14,7 +14,7 @@ |
||
14 | 14 | */ |
15 | 15 | public function up() |
16 | 16 | { |
17 | - Schema::create('fg_reviews', function (Blueprint $table) { |
|
17 | + Schema::create('fg_reviews', function(Blueprint $table) { |
|
18 | 18 | $table->string('id')->index(); |
19 | 19 | $table->string('ministry_id', 150)->index(); |
20 | 20 | $table->enum('type', Helper::$reviewTypes); |