diff --git a/src/Traits/UseShield.php b/src/Traits/UseShield.php index 0c52cf4..ea6da37 100644 --- a/src/Traits/UseShield.php +++ b/src/Traits/UseShield.php @@ -49,7 +49,7 @@ protected function getShieldRedirectPath(): string protected static function getPermissionName(): string { - if(class_exists('BezhanSalleh\FilamentShield\Support\Utils')) { + if (class_exists('BezhanSalleh\FilamentShield\Support\Utils')) { return Str::of(class_basename(static::class)) ->prepend( Str::of(Utils::getPagePermissionPrefix()) @@ -57,9 +57,8 @@ protected static function getPermissionName(): string ->toString() ) ->toString(); - } - else { - return ""; + } else { + return ''; } } diff --git a/tests/src/SiteSettingsPageTest.php b/tests/src/SiteSettingsPageTest.php index 1416862..0c6509c 100644 --- a/tests/src/SiteSettingsPageTest.php +++ b/tests/src/SiteSettingsPageTest.php @@ -11,7 +11,6 @@ actingAs(User::factory()->create()); }); - function checkSiteSettingExists($setting, $name): void { assertDatabaseHas(\TomatoPHP\FilamentSettingsHub\Models\Setting::class, [ diff --git a/tests/src/TestCase.php b/tests/src/TestCase.php index c3e0b59..6be00a2 100644 --- a/tests/src/TestCase.php +++ b/tests/src/TestCase.php @@ -22,8 +22,6 @@ use TomatoPHP\FilamentSettingsHub\FilamentSettingsHubServiceProvider; use TomatoPHP\FilamentSettingsHub\Tests\Models\User; -use function Pest\Laravel\assertDatabaseHas; - abstract class TestCase extends BaseTestCase { use WithWorkbench;