diff --git a/src/Notifications/OTPNotification.php b/src/Notifications/OTPNotification.php index a050947..c42c183 100644 --- a/src/Notifications/OTPNotification.php +++ b/src/Notifications/OTPNotification.php @@ -8,6 +8,7 @@ use Illuminate\Notifications\Messages\MailMessage; use Illuminate\Notifications\Notification; use Laraflow\Sms\SmsMessage; + use function decide_sms_from_name; class OTPNotification extends Notification 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)); }