Skip to content

Commit 467e3ff

Browse files
SlimGeegithub-actions[bot]
authored andcommitted
Fix styling
1 parent c4dc4d8 commit 467e3ff

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

src/LaravelAuthorizerServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function boot()
3535
if (version_compare($this->app->version(), '9.21.0') >= 0) {
3636
AboutCommand::add(
3737
'Laravel Authorizer',
38-
fn() => [
38+
fn () => [
3939
'version' => '0.0.1',
4040
'author' => 'Flixtechs Labs',
4141
'license' => 'MIT',

tests/GeneratePermissionsTest.php

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

55
use FlixtechsLabs\LaravelAuthorizer\Commands\GeneratePermissionsCommand;
66
use Illuminate\Foundation\Testing\RefreshDatabase;
7-
use function Pest\Laravel\assertDatabaseHas;
8-
use function Pest\Laravel\assertDatabaseMissing;
97

108
class GeneratePermissionsTest extends TestCase
119
{
@@ -28,7 +26,7 @@ public function testCanGeneratePermissionsForAllModels(): void
2826
'Order',
2927
'OrderItem',
3028
])->each(
31-
fn($model) => $this->artisan('make:model', [
29+
fn ($model) => $this->artisan('make:model', [
3230
'name' => $model,
3331
])
3432
);
@@ -75,7 +73,7 @@ public function testCanGeneratePermissionForJustTheSpecifiedModel(): void
7573
'Order',
7674
'OrderItem',
7775
])->each(
78-
fn($model) => $this->artisan('make:model', [
76+
fn ($model) => $this->artisan('make:model', [
7977
'name' => $model,
8078
])
8179
);

tests/LaravelAuthorizerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function testCanGeneratePoliciesForAllModels(): void
5151
'Order',
5252
'OrderItem',
5353
])->each(
54-
fn($model) => $this->artisan('make:model', [
54+
fn ($model) => $this->artisan('make:model', [
5555
'name' => $model,
5656
])
5757
);

tests/TestCase.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ protected function setUp(): void
2323
});
2424

2525
Factory::guessFactoryNamesUsing(
26-
fn(
26+
fn (
2727
string $modelName
28-
) => 'FlixtechsLabs\\LaravelAuthorizer\\Database\\Factories\\' .
29-
class_basename($modelName) .
28+
) => 'FlixtechsLabs\\LaravelAuthorizer\\Database\\Factories\\'.
29+
class_basename($modelName).
3030
'Factory'
3131
);
3232
}

0 commit comments

Comments
 (0)