@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('fg_activations', function (Blueprint $table) { |
|
16 | + Schema::create('fg_activations', function(Blueprint $table) { |
|
17 | 17 | $table->string('id')->index(); |
18 | 18 | $table->string('ministry_id', 150)->unique()->index(); |
19 | 19 | $table->string('code')->unique(); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('fg_profiles', function (Blueprint $table) { |
|
16 | + Schema::create('fg_profiles', function(Blueprint $table) { |
|
17 | 17 | $table->string('id', 150)->primary(); |
18 | 18 | $table->string('ministry_id', 150)->index(); |
19 | 19 | $table->text('about_us')->nullable(); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('fg_comments', function (Blueprint $table) { |
|
16 | + Schema::create('fg_comments', function(Blueprint $table) { |
|
17 | 17 | $table->string('id', 150); |
18 | 18 | $table->string('creatable_id', 150)->index(); |
19 | 19 | $table->string('creatable_type'); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('fg_images', function (Blueprint $table) { |
|
16 | + Schema::create('fg_images', function(Blueprint $table) { |
|
17 | 17 | $table->string('id', 150); |
18 | 18 | $table->string('imageable_id', 150)->index(); |
19 | 19 | $table->string('imageable_type'); |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | use CreatableTrait; |
26 | 26 | |
27 | 27 | protected $table = 'fg_ministries'; |
28 | - protected $guarded = ['id']; |
|
28 | + protected $guarded = [ 'id' ]; |
|
29 | 29 | public $incrementing = false; |
30 | 30 | protected $hidden = [ |
31 | 31 | 'password', |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | |
41 | 41 | public function getJWTCustomClaims() |
42 | 42 | { |
43 | - return []; |
|
43 | + return [ ]; |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | /** |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | |
106 | 106 | return $phones; |
107 | 107 | } else { |
108 | - return [$this->phone]; |
|
108 | + return [ $this->phone ]; |
|
109 | 109 | } |
110 | 110 | } |
111 | 111 | |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | |
118 | 118 | return $emails; |
119 | 119 | } else { |
120 | - return [$this->email]; |
|
120 | + return [ $this->email ]; |
|
121 | 121 | } |
122 | 122 | } |
123 | 123 | |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | public function getUsersAttribute() |
143 | 143 | { |
144 | 144 | return $this->ministryUsers() |
145 | - ->map(fn ($minUser) => $minUser->user) |
|
145 | + ->map(fn($minUser) => $minUser->user) |
|
146 | 146 | ->flatten(); |
147 | 147 | } |
148 | 148 | } |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | use StorageTrait; |
19 | 19 | |
20 | 20 | protected $table = 'fg_users'; |
21 | - protected $guarded = ['id']; |
|
21 | + protected $guarded = [ 'id' ]; |
|
22 | 22 | public $incrementing = false; |
23 | 23 | protected $hidden = [ |
24 | 24 | 'password', |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | |
52 | 52 | public function getMinistriesAttribute() |
53 | 53 | { |
54 | - return Ministry::whereHas('ministryUsers', function ($minUser) { |
|
54 | + return Ministry::whereHas('ministryUsers', function($minUser) { |
|
55 | 55 | return $minUser->where('user_id', $this->id); |
56 | 56 | }); |
57 | 57 | } |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | public function getActiveAttribute(): bool |
60 | 60 | { |
61 | 61 | if ($user = $this->ministryUsers()->where('ministry_id', auth()->user()->id)->first()) { |
62 | - return (bool) $user->active; |
|
62 | + return (bool)$user->active; |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | return false; |
@@ -80,6 +80,6 @@ discard block |
||
80 | 80 | |
81 | 81 | public function getImageDimensions() |
82 | 82 | { |
83 | - return [0, 50]; |
|
83 | + return [ 0, 50 ]; |
|
84 | 84 | } |
85 | 85 | } |
@@ -10,5 +10,5 @@ |
||
10 | 10 | use BelongsToMinistryTrait; |
11 | 11 | |
12 | 12 | protected $table = 'fg_reviews'; |
13 | - protected $guarded = ['id']; |
|
13 | + protected $guarded = [ 'id' ]; |
|
14 | 14 | } |
@@ -5,7 +5,7 @@ |
||
5 | 5 | use FaithGen\SDK\Models\Ministry; |
6 | 6 | use Faker\Generator as Faker; |
7 | 7 | |
8 | -$factory->define(Ministry::class, function (Faker $faker) { |
|
8 | +$factory->define(Ministry::class, function(Faker $faker) { |
|
9 | 9 | return [ |
10 | 10 | 'name' => $faker->company, |
11 | 11 | 'email' => $faker->safeEmail, |
@@ -5,7 +5,7 @@ |
||
5 | 5 | use FaithGen\SDK\Models\User; |
6 | 6 | use Faker\Generator as Faker; |
7 | 7 | |
8 | -$factory->define(User::class, function (Faker $faker) { |
|
8 | +$factory->define(User::class, function(Faker $faker) { |
|
9 | 9 | return [ |
10 | 10 | // |
11 | 11 | ]; |