Skip to content

Commit facf5bf

Browse files
SlimGeegithub-actions[bot]
authored andcommitted
Fix styling
1 parent 276f66f commit facf5bf

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

src/Commands/LaravelAuthorizerCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function generatePlainPolicy(string $name): void
9292
)
9393
);
9494

95-
(new Filesystem())->dumpFile($this->getPolicyPath($name), $compiled);
95+
(new Filesystem)->dumpFile($this->getPolicyPath($name), $compiled);
9696
}
9797

9898
/**
@@ -141,7 +141,7 @@ private function generatePolicy(string $name, string $model): void
141141
)
142142
);
143143

144-
(new Filesystem())->dumpFile($this->getPolicyPath($name), $compiled);
144+
(new Filesystem)->dumpFile($this->getPolicyPath($name), $compiled);
145145
}
146146

147147
/**

tests/GeneratePermissionsTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ class GeneratePermissionsTest extends TestCase
99
{
1010
use RefreshDatabase;
1111

12-
public function testCanAlsoRunTests(): void
12+
public function test_can_also_run_tests(): void
1313
{
1414
$this->assertTrue(true);
1515
}
1616

17-
public function testCanGeneratePermissionsForAllModels(): void
17+
public function test_can_generate_permissions_for_all_models(): void
1818
{
1919
collect([
2020
'User',
@@ -61,7 +61,7 @@ public function testCanGeneratePermissionsForAllModels(): void
6161
]);
6262
}
6363

64-
public function testCanGeneratePermissionForJustTheSpecifiedModel(): void
64+
public function test_can_generate_permission_for_just_the_specified_model(): void
6565
{
6666
collect([
6767
'User',

tests/LaravelAuthorizerTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@
66

77
class LaravelAuthorizerTest extends TestCase
88
{
9-
public function testCanRunTests(): void
9+
public function test_can_run_tests(): void
1010
{
1111
$this->assertTrue(true);
1212
}
1313

14-
public function testCanRunCommandSuccessfully(): void
14+
public function test_can_run_command_successfully(): void
1515
{
1616
$this->artisan(LaravelAuthorizerCommand::class, [
1717
'name' => 'User',
1818
'--model' => 'User',
1919
])->assertSuccessful();
2020
}
2121

22-
public function testCanCreatePolicyWhenCalledWithSpecificPolicyName(): void
22+
public function test_can_create_policy_when_called_with_specific_policy_name(): void
2323
{
2424
$this->artisan(LaravelAuthorizerCommand::class, [
2525
'name' => 'Post',
@@ -29,7 +29,7 @@ public function testCanCreatePolicyWhenCalledWithSpecificPolicyName(): void
2929
$this->assertFileExists(base_path('app/Policies/PostPolicy.php'));
3030
}
3131

32-
public function testCanAppendPolicyToFilenameEventIfItWasIncludedInPolicyName(): void
32+
public function test_can_append_policy_to_filename_event_if_it_was_included_in_policy_name(): void
3333
{
3434
$this->artisan(LaravelAuthorizerCommand::class, [
3535
'name' => 'UserPolicy',
@@ -39,7 +39,7 @@ public function testCanAppendPolicyToFilenameEventIfItWasIncludedInPolicyName():
3939
$this->assertFileExists(base_path('app/Policies/UserPolicy.php'));
4040
}
4141

42-
public function testCanGeneratePoliciesForAllModels(): void
42+
public function test_can_generate_policies_for_all_models(): void
4343
{
4444
collect([
4545
'User',
@@ -71,7 +71,7 @@ public function testCanGeneratePoliciesForAllModels(): void
7171
$this->assertFileExists(base_path('app/Policies/OrderItemPolicy.php'));
7272
}
7373

74-
public function testCanSkipExistingPolicies(): void
74+
public function test_can_skip_existing_policies(): void
7575
{
7676
$this->artisan(LaravelAuthorizerCommand::class, [
7777
'name' => 'User',
@@ -86,7 +86,7 @@ public function testCanSkipExistingPolicies(): void
8686
])->assertSuccessful();
8787
}
8888

89-
public function testCanForceCreatePolicyEvenIfItExists(): void
89+
public function test_can_force_create_policy_even_if_it_exists(): void
9090
{
9191
$this->artisan(LaravelAuthorizerCommand::class, [
9292
'name' => 'User',

tests/SetupTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@
66

77
class SetupTest extends TestCase
88
{
9-
public function testCanRunTest(): void
9+
public function test_can_run_test(): void
1010
{
1111
$this->assertTrue(true);
1212
}
1313

14-
public function testCanSetupTheAuthorizerPackage(): void
14+
public function test_can_setup_the_authorizer_package(): void
1515
{
1616
$this->artisan(SetupCommand::class)
1717
->expectsOutput('Setup complete!')
1818
->assertSuccessful();
1919
}
2020

21-
public function testCanGeneratePermissionsDuringSetup(): void
21+
public function test_can_generate_permissions_during_setup(): void
2222
{
2323
$this->artisan('make:model', ['name' => 'User'])->assertSuccessful();
2424

@@ -31,7 +31,7 @@ public function testCanGeneratePermissionsDuringSetup(): void
3131
]);
3232
}
3333

34-
public function testCanGeneratePoliciesDuringSetup(): void
34+
public function test_can_generate_policies_during_setup(): void
3535
{
3636
$this->artisan('make:model', ['name' => 'User'])->assertSuccessful();
3737

0 commit comments

Comments
 (0)