Skip to content

Commit

Permalink
Format Code
Browse files Browse the repository at this point in the history
  • Loading branch information
3x1io authored and github-actions[bot] committed Oct 30, 2024
1 parent 428b2f6 commit 974eb7e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
7 changes: 3 additions & 4 deletions src/Traits/UseShield.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,16 @@ 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())
->append('_')
->toString()
)
->toString();
}
else {
return "";
} else {
return '';
}
}

Expand Down
1 change: 0 additions & 1 deletion tests/src/SiteSettingsPageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
actingAs(User::factory()->create());
});


function checkSiteSettingExists($setting, $name): void
{
assertDatabaseHas(\TomatoPHP\FilamentSettingsHub\Models\Setting::class, [
Expand Down
2 changes: 0 additions & 2 deletions tests/src/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 974eb7e

Please sign in to comment.