Skip to content

Commit 9b0dc27

Browse files
style: fix formatting
1 parent 1300252 commit 9b0dc27

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/Concerns/ResolvesState.php

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

88
trait ResolvesState
99
{
10-
/**
10+
/**
1111
* Resolve the value of a given state.
1212
*
1313
* @throws \InvalidArgumentException
@@ -22,4 +22,4 @@ private function resolveState(ResourceState|string $state): string
2222

2323
return $stateString;
2424
}
25-
}
25+
}

tests/Feature/CustomStatesTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@
2727
/** @var TestCase $this */
2828
$cat = Cat::firstOrFail();
2929

30-
expect(fn() => CatResource::state('non_existent')->make($cat)->toJson())
30+
expect(fn () => CatResource::state('non_existent')->make($cat)->toJson())
3131
->toThrow(InvalidArgumentException::class, 'State "non_existent" is not registered.');
32-
});
32+
});

tests/TestCase.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use Illuminate\Foundation\Testing\RefreshDatabase;
88
use Orchestra\Testbench\Concerns\WithWorkbench;
99
use Orchestra\Testbench\TestCase as Orchestra;
10-
use Workbench\App\Enums\CustomResourceStates;
1110

1211
class TestCase extends Orchestra
1312
{
@@ -31,7 +30,7 @@ protected function getEnvironmentSetUp($app)
3130
{
3231
$app['config']->set('stateful-resources.states', [
3332
...Variant::cases(),
34-
'custom'
33+
'custom',
3534
]);
3635
}
3736

0 commit comments

Comments
 (0)