From 9de8a99435a951b101cb4074a41fcf7338e9ffe2 Mon Sep 17 00:00:00 2001 From: Chris Mellor Date: Wed, 12 Jun 2024 20:44:17 +0100 Subject: [PATCH] fix: Run linter --- src/Concerns/MustBeApprovedFactory.php | 3 --- tests/Feature/Factories/FakeModelFactory.php | 2 +- tests/Feature/MustBeApprovedFactoryTraitTest.php | 6 ------ 3 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/Concerns/MustBeApprovedFactory.php b/src/Concerns/MustBeApprovedFactory.php index 5f8b2c6..162fbb7 100644 --- a/src/Concerns/MustBeApprovedFactory.php +++ b/src/Concerns/MustBeApprovedFactory.php @@ -2,11 +2,8 @@ namespace Cjmellor\Approval\Concerns; -use Cjmellor\Approval\Enums\ApprovalStatus; -use Cjmellor\Approval\Models\Approval; use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Database\Eloquent\Model; -use Illuminate\Database\Eloquent\Relations\MorphMany; trait MustBeApprovedFactory { diff --git a/tests/Feature/Factories/FakeModelFactory.php b/tests/Feature/Factories/FakeModelFactory.php index f39e381..fca3f7c 100644 --- a/tests/Feature/Factories/FakeModelFactory.php +++ b/tests/Feature/Factories/FakeModelFactory.php @@ -12,7 +12,7 @@ class FakeModelFactory extends Factory protected $model = FakeModel::class; - public function definition():array + public function definition(): array { return [ 'name' => 'Bob', diff --git a/tests/Feature/MustBeApprovedFactoryTraitTest.php b/tests/Feature/MustBeApprovedFactoryTraitTest.php index 3479cc9..6635776 100644 --- a/tests/Feature/MustBeApprovedFactoryTraitTest.php +++ b/tests/Feature/MustBeApprovedFactoryTraitTest.php @@ -1,12 +1,6 @@ withoutApproval()->create();