Skip to content

Commit 667c1fb

Browse files
moaalaagithub-actions[bot]
authored andcommitted
Fix styling
1 parent 204edd8 commit 667c1fb

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

config/filament-multi-2fa.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
|--------------------------------------------------------------------------
3535
|
3636
| Choose the QR code rendering service to generate the QR Code for TOTP.
37-
|
37+
|
3838
| Supported Services:
3939
|
4040
| 1. BaconQrCode (default):
@@ -72,7 +72,7 @@
7272
| Trusted Device Settings
7373
|--------------------------------------------------------------------------
7474
|
75-
| Configure trusted device cookie settings, including cookie name,
75+
| Configure trusted device cookie settings, including cookie name,
7676
| lifespan in minutes, and cache settings to minimize DB hits.
7777
|
7878
*/

src/Pages/TwoFactorySetup.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
use MixCode\FilamentMulti2fa\FilamentMulti2faPlugin;
2525
use PragmaRX\Google2FA\Google2FA;
2626
use PragmaRX\Google2FAQRCode\Google2FA as Google2FAQRCode;
27-
use PragmaRX\Google2FAQRCode\QRCode\Bacon;
2827
use PragmaRX\Google2FAQRCode\QRCode\Chillerlan;
2928

3029
class 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

Comments
 (0)