@@ -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', |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | 'updated_at', |
| 34 | 34 | ]; |
| 35 | 35 | |
| 36 | - public const ACCOUNT_LEVELS = ['Free', 'Premium', 'PremiumPlus']; |
|
| 36 | + public const ACCOUNT_LEVELS = [ 'Free', 'Premium', 'PremiumPlus' ]; |
|
| 37 | 37 | |
| 38 | 38 | public function getJWTIdentifier() |
| 39 | 39 | { |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | |
| 43 | 43 | public function getJWTCustomClaims() |
| 44 | 44 | { |
| 45 | - return []; |
|
| 45 | + return [ ]; |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | /** |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | |
| 111 | 111 | return $phones; |
| 112 | 112 | } else { |
| 113 | - return [$this->phone]; |
|
| 113 | + return [ $this->phone ]; |
|
| 114 | 114 | } |
| 115 | 115 | } |
| 116 | 116 | |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | |
| 123 | 123 | return $emails; |
| 124 | 124 | } else { |
| 125 | - return [$this->email]; |
|
| 125 | + return [ $this->email ]; |
|
| 126 | 126 | } |
| 127 | 127 | } |
| 128 | 128 | |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | public function getUsersAttribute() |
| 150 | 150 | { |
| 151 | 151 | return $this->ministryUsers() |
| 152 | - ->map(fn ($minUser) => $minUser->user) |
|
| 152 | + ->map(fn($minUser) => $minUser->user) |
|
| 153 | 153 | ->flatten(); |
| 154 | 154 | } |
| 155 | 155 | } |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | use Illuminate\Support\Facades\Hash; |
| 12 | 12 | use Illuminate\Support\Str; |
| 13 | 13 | |
| 14 | -$factory->define(\FaithGen\SDK\Models\Ministry::class, function (Faker $faker) { |
|
| 14 | +$factory->define(\FaithGen\SDK\Models\Ministry::class, function(Faker $faker) { |
|
| 15 | 15 | return [ |
| 16 | 16 | 'name' => $faker->company, |
| 17 | 17 | 'email' => $faker->safeEmail, |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | ]; |
| 24 | 24 | }); |
| 25 | 25 | |
| 26 | -$factory->define(Profile::class, function (Faker $faker) { |
|
| 26 | +$factory->define(Profile::class, function(Faker $faker) { |
|
| 27 | 27 | return [ |
| 28 | 28 | 'id' => Str::uuid()->toString(), |
| 29 | 29 | 'about_us' => $faker->randomHtml(2, 3), |
@@ -46,13 +46,13 @@ discard block |
||
| 46 | 46 | ]; |
| 47 | 47 | }); |
| 48 | 48 | |
| 49 | -$factory->define(Account::class, function () { |
|
| 49 | +$factory->define(Account::class, function() { |
|
| 50 | 50 | return [ |
| 51 | 51 | 'id' => Str::uuid()->toString(), |
| 52 | 52 | ]; |
| 53 | 53 | }); |
| 54 | 54 | |
| 55 | -$factory->define(Activation::class, function (Faker $faker) { |
|
| 55 | +$factory->define(Activation::class, function(Faker $faker) { |
|
| 56 | 56 | return [ |
| 57 | 57 | 'id' => Str::uuid()->toString(), |
| 58 | 58 | 'code' => $faker->randomNumber(7), |
@@ -60,17 +60,17 @@ discard block |
||
| 60 | 60 | ]; |
| 61 | 61 | }); |
| 62 | 62 | |
| 63 | -$factory->define(Ministry\APIKey::class, function () { |
|
| 63 | +$factory->define(Ministry\APIKey::class, function() { |
|
| 64 | 64 | return [ |
| 65 | 65 | 'id' => Str::uuid()->toString(), |
| 66 | 66 | 'api_key' => str_shuffle(Str::uuid()->toString()), |
| 67 | 67 | ]; |
| 68 | 68 | }); |
| 69 | 69 | |
| 70 | -$factory->define(Ministry\DailyService::class, function (Faker $faker) { |
|
| 70 | +$factory->define(Ministry\DailyService::class, function(Faker $faker) { |
|
| 71 | 71 | return [ |
| 72 | 72 | 'id' => Str::uuid()->toString(), |
| 73 | - 'day' => Helper::$weekDays[(rand(0, count(Helper::$weekDays) - 1))], |
|
| 73 | + 'day' => Helper::$weekDays[ (rand(0, count(Helper::$weekDays) - 1)) ], |
|
| 74 | 74 | 'alias' => $faker->word, |
| 75 | 75 | 'start' => '08:00', |
| 76 | 76 | 'finish' => '11:00', |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | use Illuminate\Support\Facades\Hash; |
| 10 | 10 | use Illuminate\Support\Str; |
| 11 | 11 | |
| 12 | -$factory->define(User::class, function (Faker $faker) { |
|
| 12 | +$factory->define(User::class, function(Faker $faker) { |
|
| 13 | 13 | return [ |
| 14 | 14 | 'id' => Str::uuid()->toString(), |
| 15 | 15 | 'name' => $faker->name, |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | ]; |
| 20 | 20 | }); |
| 21 | 21 | |
| 22 | -$factory->define(MinistryUser::class, function (Faker $faker) { |
|
| 22 | +$factory->define(MinistryUser::class, function(Faker $faker) { |
|
| 23 | 23 | return [ |
| 24 | 24 | 'ministry_id' => Ministry::inRandomOrder()->first()->id, |
| 25 | 25 | 'id' => Str::uuid()->toString(), |