From cabf990f7fdf49bea5b20d2a3064020c9ce8597f Mon Sep 17 00:00:00 2001 From: hafijul233 Date: Thu, 5 Sep 2024 19:39:35 +0000 Subject: [PATCH] Fix styling --- src/Services/PasswordResetService.php | 3 +-- src/Services/PinResetService.php | 3 +-- src/Services/ProfileService.php | 3 +-- src/Services/UserService.php | 5 ++--- tests/Feature/LoginTest.php | 1 + tests/Feature/PermissionTest.php | 1 + tests/Feature/RoleTest.php | 1 + 7 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/Services/PasswordResetService.php b/src/Services/PasswordResetService.php index efa1918..9bfa897 100644 --- a/src/Services/PasswordResetService.php +++ b/src/Services/PasswordResetService.php @@ -39,8 +39,7 @@ class PasswordResetService public function __construct( private readonly OneTimePinRepository $oneTimePinRepository, private readonly UserRepository $userRepository - ) - { + ) { $this->passwordField = config('fintech.auth.password_field', 'password'); $this->resetMethod = config('fintech.auth.password_reset_method', PasswordResetOption::ResetLink->value); diff --git a/src/Services/PinResetService.php b/src/Services/PinResetService.php index a0e1ee9..30b0475 100644 --- a/src/Services/PinResetService.php +++ b/src/Services/PinResetService.php @@ -37,8 +37,7 @@ class PinResetService public function __construct( private readonly OneTimePinRepository $oneTimePinRepository, private readonly UserRepository $userRepository - ) - { + ) { $this->pinField = config('fintech.auth.pin_field', 'pin'); $this->resetMethod = config('fintech.auth.password_reset_method', PasswordResetOption::ResetLink->value); diff --git a/src/Services/ProfileService.php b/src/Services/ProfileService.php index 25cb6e6..cad8cea 100644 --- a/src/Services/ProfileService.php +++ b/src/Services/ProfileService.php @@ -26,8 +26,7 @@ class ProfileService */ public function __construct( private readonly ProfileRepository $profileRepository - ) - { + ) { } public function create(string|int $user_id, array $inputs = []) diff --git a/src/Services/UserService.php b/src/Services/UserService.php index a7e439f..fbfa871 100644 --- a/src/Services/UserService.php +++ b/src/Services/UserService.php @@ -42,8 +42,7 @@ class UserService public function __construct( private readonly UserRepository $userRepository, private readonly ProfileRepository $profileRepository - ) - { + ) { $this->loginAttempt = []; } @@ -300,7 +299,7 @@ public function login(array $inputs, string $guard = 'web') if ($attemptUser->tokens->isNotEmpty()) { - $attemptUser->tokens->each(fn($token) => $token->delete()); + $attemptUser->tokens->each(fn ($token) => $token->delete()); event(new OtherDeviceLogout($guard, $attemptUser)); } diff --git a/tests/Feature/LoginTest.php b/tests/Feature/LoginTest.php index 1438b1e..dd68b62 100644 --- a/tests/Feature/LoginTest.php +++ b/tests/Feature/LoginTest.php @@ -1,6 +1,7 @@