Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
markvaneijk committed Oct 22, 2024
2 parents ceac443 + 75be0ba commit 4fcd3ee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Pages/TwoFactor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion src/TwoFactorAuthPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
]);
}

Expand Down
2 changes: 1 addition & 1 deletion src/TwoFactorAuthServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
});
Expand Down

0 comments on commit 4fcd3ee

Please sign in to comment.