diff --git a/src/Pages/TwoFactor.php b/src/Pages/TwoFactor.php index 5c6e509..c40ccbd 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'); }); });