From 75be0ba4dabbb1fa26335c0fd4222e947714139a Mon Sep 17 00:00:00 2001 From: markvaneijk Date: Tue, 22 Oct 2024 12:41:22 +0000 Subject: [PATCH] Fix styling --- src/Pages/TwoFactor.php | 2 +- src/TwoFactorAuthPlugin.php | 2 +- src/TwoFactorAuthServiceProvider.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Pages/TwoFactor.php b/src/Pages/TwoFactor.php index 90c367d..945fbd1 100644 --- a/src/Pages/TwoFactor.php +++ b/src/Pages/TwoFactor.php @@ -90,7 +90,7 @@ public function getConfirmationForm(): array return [ TextInput::make('current_password') ->label(__('Password')) - ->dehydrateStateUsing(fn($state) => filled($state)) + ->dehydrateStateUsing(fn ($state) => filled($state)) ->required() ->password() ->inlineLabel() diff --git a/src/TwoFactorAuthPlugin.php b/src/TwoFactorAuthPlugin.php index 8c15e13..8db2d15 100644 --- a/src/TwoFactorAuthPlugin.php +++ b/src/TwoFactorAuthPlugin.php @@ -42,7 +42,7 @@ public function register(Panel $panel): void 'two-factor-authentication' => MenuItem::make() ->icon('heroicon-o-lock-closed') ->label(__('Two-Factor Authentication')) - ->url(fn(): string => TwoFactor::getUrl()), + ->url(fn (): string => TwoFactor::getUrl()), ]); } diff --git a/src/TwoFactorAuthServiceProvider.php b/src/TwoFactorAuthServiceProvider.php index 7192f18..c09ed5f 100644 --- a/src/TwoFactorAuthServiceProvider.php +++ b/src/TwoFactorAuthServiceProvider.php @@ -170,7 +170,7 @@ public function packageBooted(): void * This route name is used multiple places in filament. */ Route::prefix(config('filament.path'))->group(function () { - Route::get('/filament-login', fn() => Redirect::route('login')) + Route::get('/filament-login', fn () => Redirect::route('login')) ->name('auth.login'); }); });