Skip to content

Commit 3d175d5

Browse files
format code
1 parent 2ab4396 commit 3d175d5

29 files changed

+79
-70
lines changed

database/factories/FeatureConsumptionFactory.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace LucasDotVin\Soulbscription\Database\Factories;
44

5-
use LucasDotVin\Soulbscription\Models\Feature;
65
use Illuminate\Database\Eloquent\Factories\Factory;
6+
use LucasDotVin\Soulbscription\Models\Feature;
77
use LucasDotVin\Soulbscription\Models\FeatureConsumption;
88

99
class FeatureConsumptionFactory extends Factory
@@ -18,10 +18,10 @@ class FeatureConsumptionFactory extends Factory
1818
public function definition()
1919
{
2020
return [
21-
'feature_id' => Feature::factory(),
22-
'consumption' => $this->faker->randomFloat(),
23-
'expired_at' => $this->faker->dateTime(),
24-
'subscriber_id' => $this->faker->randomNumber(),
21+
'feature_id' => Feature::factory(),
22+
'consumption' => $this->faker->randomFloat(),
23+
'expired_at' => $this->faker->dateTime(),
24+
'subscriber_id' => $this->faker->randomNumber(),
2525
'subscriber_type' => $this->faker->word(),
2626
];
2727
}

database/factories/FeatureFactory.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace LucasDotVin\Soulbscription\Database\Factories;
44

5-
use LucasDotVin\Soulbscription\Enums\PeriodicityType;
65
use Illuminate\Database\Eloquent\Factories\Factory;
6+
use LucasDotVin\Soulbscription\Enums\PeriodicityType;
77
use LucasDotVin\Soulbscription\Models\Feature;
88

99
class FeatureFactory extends Factory
@@ -18,17 +18,17 @@ class FeatureFactory extends Factory
1818
public function definition()
1919
{
2020
return [
21-
'consumable' => $this->faker->boolean(),
22-
'name' => $this->faker->words(asText: true),
23-
'periodicity' => $this->faker->randomDigitNotNull(),
21+
'consumable' => $this->faker->boolean(),
22+
'name' => $this->faker->words(asText: true),
23+
'periodicity' => $this->faker->randomDigitNotNull(),
2424
'periodicity_type' => $this->faker->randomElement([
2525
PeriodicityType::Year,
2626
PeriodicityType::Month,
2727
PeriodicityType::Week,
2828
PeriodicityType::Day,
2929
]),
30-
'quota' => false,
31-
'postpaid' => false,
30+
'quota' => false,
31+
'postpaid' => false,
3232
];
3333
}
3434

database/factories/PlanFactory.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace LucasDotVin\Soulbscription\Database\Factories;
44

5-
use LucasDotVin\Soulbscription\Enums\PeriodicityType;
65
use Illuminate\Database\Eloquent\Factories\Factory;
6+
use LucasDotVin\Soulbscription\Enums\PeriodicityType;
77
use LucasDotVin\Soulbscription\Models\Plan;
88

99
class PlanFactory extends Factory
@@ -18,9 +18,9 @@ class PlanFactory extends Factory
1818
public function definition()
1919
{
2020
return [
21-
'grace_days' => 0,
22-
'name' => $this->faker->words(asText: true),
23-
'periodicity' => $this->faker->randomDigitNotNull(),
21+
'grace_days' => 0,
22+
'name' => $this->faker->words(asText: true),
23+
'periodicity' => $this->faker->randomDigitNotNull(),
2424
'periodicity_type' => $this->faker->randomElement([
2525
PeriodicityType::Year,
2626
PeriodicityType::Month,

database/factories/SubscriptionFactory.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
namespace LucasDotVin\Soulbscription\Database\Factories;
44

5-
use LucasDotVin\Soulbscription\Models\Plan;
65
use Illuminate\Database\Eloquent\Factories\Factory;
6+
use LucasDotVin\Soulbscription\Models\Plan;
77
use LucasDotVin\Soulbscription\Models\Subscription;
88

99
class SubscriptionFactory extends Factory
@@ -18,13 +18,13 @@ class SubscriptionFactory extends Factory
1818
public function definition()
1919
{
2020
return [
21-
'plan_id' => Plan::factory(),
22-
'canceled_at' => null,
23-
'started_at' => $this->faker->dateTime(),
24-
'suppressed_at' => null,
25-
'expired_at' => $this->faker->dateTime(),
26-
'was_switched' => false,
27-
'subscriber_id' => $this->faker->randomNumber(),
21+
'plan_id' => Plan::factory(),
22+
'canceled_at' => null,
23+
'started_at' => $this->faker->dateTime(),
24+
'suppressed_at' => null,
25+
'expired_at' => $this->faker->dateTime(),
26+
'was_switched' => false,
27+
'subscriber_id' => $this->faker->randomNumber(),
2828
'subscriber_type' => $this->faker->word(),
2929
];
3030
}

database/factories/SubscriptionRenewalFactory.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
namespace LucasDotVin\Soulbscription\Database\Factories;
44

5-
use LucasDotVin\Soulbscription\Models\{Subscription, SubscriptionRenewal};
65
use Illuminate\Database\Eloquent\Factories\Factory;
6+
use LucasDotVin\Soulbscription\Models\Subscription;
7+
use LucasDotVin\Soulbscription\Models\SubscriptionRenewal;
78

89
class SubscriptionRenewalFactory extends Factory
910
{
@@ -18,8 +19,8 @@ public function definition()
1819
{
1920
return [
2021
'subscription_id' => Subscription::factory(),
21-
'overdue' => $this->faker->boolean(),
22-
'renewal' => $this->faker->boolean(),
22+
'overdue' => $this->faker->boolean(),
23+
'renewal' => $this->faker->boolean(),
2324
];
2425
}
2526
}

database/migrations/2022_02_01_233701_create_plans_table.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
use Illuminate\Database\Schema\Blueprint;
55
use Illuminate\Support\Facades\Schema;
66

7-
return new class extends Migration {
7+
return new class extends Migration
8+
{
89
/**
910
* Run the migrations.
1011
*

database/migrations/2022_02_01_235539_create_subscriptions_table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
use Illuminate\Database\Migrations\Migration;
44
use Illuminate\Database\Schema\Blueprint;
5-
use Illuminate\Support\Facades\DB;
65
use Illuminate\Support\Facades\Schema;
76

8-
return new class() extends Migration {
7+
return new class extends Migration
8+
{
99
/**
1010
* Run the migrations.
1111
*

database/migrations/2022_02_01_235540_create_features_table.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
use Illuminate\Database\Schema\Blueprint;
55
use Illuminate\Support\Facades\Schema;
66

7-
return new class() extends Migration {
7+
return new class extends Migration
8+
{
89
/**
910
* Run the migrations.
1011
*

database/migrations/2022_02_02_000527_create_feature_consumptions_table.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
use Illuminate\Database\Schema\Blueprint;
55
use Illuminate\Support\Facades\Schema;
66

7-
return new class() extends Migration {
7+
return new class extends Migration
8+
{
89
/**
910
* Run the migrations.
1011
*

database/migrations/2022_02_03_001206_create_subscription_renewals_table.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
use Illuminate\Database\Schema\Blueprint;
55
use Illuminate\Support\Facades\Schema;
66

7-
return new class () extends Migration {
7+
return new class extends Migration
8+
{
89
/**
910
* Run the migrations.
1011
*

0 commit comments

Comments
 (0)