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 5, 2024
1 parent 31e073d commit cabf990
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 9 deletions.
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
1 change: 1 addition & 0 deletions tests/Feature/LoginTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

use Fintech\Auth\Facades\Auth;

use function Pest\Laravel\postJson;

test('login failed', function () {
Expand Down
1 change: 1 addition & 0 deletions tests/Feature/PermissionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

use Fintech\Auth\Facades\Auth;
use Illuminate\Support\Str;

use function Pest\Laravel\deleteJson;
use function Pest\Laravel\getJson;
use function Pest\Laravel\postJson;
Expand Down
1 change: 1 addition & 0 deletions tests/Feature/RoleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

use Fintech\Auth\Facades\Auth;
use Illuminate\Support\Str;

use function Pest\Laravel\deleteJson;
use function Pest\Laravel\getJson;
use function Pest\Laravel\postJson;
Expand Down

0 comments on commit cabf990

Please sign in to comment.