2424use MixCode \FilamentMulti2fa \FilamentMulti2faPlugin ;
2525use PragmaRX \Google2FA \Google2FA ;
2626use PragmaRX \Google2FAQRCode \Google2FA as Google2FAQRCode ;
27- use PragmaRX \Google2FAQRCode \QRCode \Bacon ;
2827use PragmaRX \Google2FAQRCode \QRCode \Chillerlan ;
2928
3029class TwoFactorySetup extends Page implements HasForms
@@ -114,13 +113,13 @@ public function setupForm(Form $form): Form
114113 ->toArray ();
115114 })
116115 ->colors (
117- fn () => collect (TwoFactorAuthType::cases ())
118- ->mapWithKeys (fn ($ type ) => [$ type ->value => $ type ->getColor ()])
116+ fn () => collect (TwoFactorAuthType::cases ())
117+ ->mapWithKeys (fn ($ type ) => [$ type ->value => $ type ->getColor ()])
119118 ->toArray ()
120119 )
121120 ->icons (
122- fn () => collect (TwoFactorAuthType::cases ())
123- ->mapWithKeys (fn ($ type ) => [$ type ->value => $ type ->getIcon ()])
121+ fn () => collect (TwoFactorAuthType::cases ())
122+ ->mapWithKeys (fn ($ type ) => [$ type ->value => $ type ->getIcon ()])
124123 ->toArray ()
125124 )
126125 ->disableOptionWhen (function (string $ value ) {
@@ -193,11 +192,11 @@ public function verifyOTPForm(Form $form): Form
193192 })
194193 ->hintAction (
195194 Action::make ('resendOtp ' )
196- ->label (fn () => trans ('filament-multi-2fa::filament-multi-2fa.resend_otp ' ))
195+ ->label (fn () => trans ('filament-multi-2fa::filament-multi-2fa.resend_otp ' ))
197196 ->hidden ($ this ->canResendOTP ())
198197 ->icon ('heroicon-o-arrow-path ' )
199198 ->disabled ($ this ->canResendOTP ())
200- ->action (fn () => $ this ->user ->generateTwoFactorOTPCode (force: true ))
199+ ->action (fn () => $ this ->user ->generateTwoFactorOTPCode (force: true ))
201200 ),
202201
203202 Radio::make ('trust_device ' )
@@ -218,7 +217,7 @@ public function verifyTOTPForm(Form $form): Form
218217 if ($ this ->data ['two_factor_type ' ] === TwoFactorAuthType::Totp->value ) {
219218 $ qrCodeBackendService = config ('filament-multi-2fa.qr_code_backend_service ' );
220219
221- $ qrCodeService = new $ qrCodeBackendService() ;
220+ $ qrCodeService = new $ qrCodeBackendService ;
222221
223222 $ QRImage = (new Google2FAQRCode )
224223 ->setQrCodeService ($ qrCodeService )
0 commit comments