Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
hafijul233 authored and github-actions[bot] committed Sep 15, 2024
1 parent d57f200 commit a1c70e0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
1 change: 1 addition & 0 deletions src/Notifications/OTPNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions src/Services/PasswordResetService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 1 addition & 2 deletions src/Services/PinResetService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 1 addition & 2 deletions src/Services/ProfileService.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ class ProfileService
*/
public function __construct(
private readonly ProfileRepository $profileRepository
)
{
) {
}

public function create(string|int $user_id, array $inputs = [])
Expand Down
5 changes: 2 additions & 3 deletions src/Services/UserService.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ class UserService
public function __construct(
private readonly UserRepository $userRepository,
private readonly ProfileRepository $profileRepository
)
{
) {
$this->loginAttempt = [];
}

Expand Down Expand Up @@ -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));
}
Expand Down

0 comments on commit a1c70e0

Please sign in to comment.