Skip to content

Commit

Permalink
fix: Run linter
Browse files Browse the repository at this point in the history
  • Loading branch information
cjmellor committed Jun 12, 2024
1 parent 5cc32e0 commit 9de8a99
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
3 changes: 0 additions & 3 deletions src/Concerns/MustBeApprovedFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Feature/Factories/FakeModelFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class FakeModelFactory extends Factory

protected $model = FakeModel::class;

public function definition():array
public function definition(): array
{
return [
'name' => 'Bob',
Expand Down
6 changes: 0 additions & 6 deletions tests/Feature/MustBeApprovedFactoryTraitTest.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
<?php

use Cjmellor\Approval\Concerns\MustBeApproved;
use Cjmellor\Approval\Enums\ApprovalStatus;
use Cjmellor\Approval\Models\Approval;
use Cjmellor\Approval\Tests\Models\FakeModel;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

test(description: 'a model is added via a factory when the "withoutApproval()" method is used ', closure: function () {
FakeModel::factory()->withoutApproval()->create();
Expand Down

0 comments on commit 9de8a99

Please sign in to comment.