diff --git a/src/Http/Requests/ImportRoleRequest.php b/src/Http/Requests/ImportRoleRequest.php index e5c2e6f..0df58f7 100644 --- a/src/Http/Requests/ImportRoleRequest.php +++ b/src/Http/Requests/ImportRoleRequest.php @@ -2,7 +2,6 @@ namespace Fintech\Auth\Http\Requests; -use Illuminate\Contracts\Validation\ValidationRule; use Illuminate\Foundation\Http\FormRequest; class ImportRoleRequest extends FormRequest diff --git a/src/Http/Requests/ImportTeamRequest.php b/src/Http/Requests/ImportTeamRequest.php index 59f26ba..336e511 100644 --- a/src/Http/Requests/ImportTeamRequest.php +++ b/src/Http/Requests/ImportTeamRequest.php @@ -2,7 +2,6 @@ namespace Fintech\Auth\Http\Requests; -use Illuminate\Contracts\Validation\ValidationRule; use Illuminate\Foundation\Http\FormRequest; class ImportTeamRequest extends FormRequest diff --git a/src/Http/Requests/ImportUserRequest.php b/src/Http/Requests/ImportUserRequest.php index 06c075a..a5d3936 100644 --- a/src/Http/Requests/ImportUserRequest.php +++ b/src/Http/Requests/ImportUserRequest.php @@ -2,7 +2,6 @@ namespace Fintech\Auth\Http\Requests; -use Illuminate\Contracts\Validation\ValidationRule; use Illuminate\Foundation\Http\FormRequest; class ImportUserRequest extends FormRequest diff --git a/src/Http/Requests/IndexProfileRequest.php b/src/Http/Requests/IndexProfileRequest.php index 5b6ee9f..56428e9 100644 --- a/src/Http/Requests/IndexProfileRequest.php +++ b/src/Http/Requests/IndexProfileRequest.php @@ -3,7 +3,6 @@ namespace Fintech\Auth\Http\Requests; use Fintech\Core\Traits\HasPaginateQuery; -use Illuminate\Contracts\Validation\ValidationRule; use Illuminate\Foundation\Http\FormRequest; class IndexProfileRequest extends FormRequest diff --git a/src/Http/Requests/IndexRoleRequest.php b/src/Http/Requests/IndexRoleRequest.php index bfb488a..71783cb 100644 --- a/src/Http/Requests/IndexRoleRequest.php +++ b/src/Http/Requests/IndexRoleRequest.php @@ -3,7 +3,6 @@ namespace Fintech\Auth\Http\Requests; use Fintech\Core\Traits\HasPaginateQuery; -use Illuminate\Contracts\Validation\ValidationRule; use Illuminate\Foundation\Http\FormRequest; class IndexRoleRequest extends FormRequest diff --git a/src/Http/Requests/IndexTeamRequest.php b/src/Http/Requests/IndexTeamRequest.php index 041d5b9..994e803 100644 --- a/src/Http/Requests/IndexTeamRequest.php +++ b/src/Http/Requests/IndexTeamRequest.php @@ -3,7 +3,6 @@ namespace Fintech\Auth\Http\Requests; use Fintech\Core\Traits\HasPaginateQuery; -use Illuminate\Contracts\Validation\ValidationRule; use Illuminate\Foundation\Http\FormRequest; class IndexTeamRequest extends FormRequest diff --git a/src/Http/Requests/IndexUserRequest.php b/src/Http/Requests/IndexUserRequest.php index a4ff7be..598d2a2 100644 --- a/src/Http/Requests/IndexUserRequest.php +++ b/src/Http/Requests/IndexUserRequest.php @@ -3,7 +3,6 @@ namespace Fintech\Auth\Http\Requests; use Fintech\Core\Traits\HasPaginateQuery; -use Illuminate\Contracts\Validation\ValidationRule; use Illuminate\Foundation\Http\FormRequest; class IndexUserRequest extends FormRequest diff --git a/src/Http/Requests/LoginRequest.php b/src/Http/Requests/LoginRequest.php index 6186d05..113728b 100644 --- a/src/Http/Requests/LoginRequest.php +++ b/src/Http/Requests/LoginRequest.php @@ -3,7 +3,6 @@ namespace Fintech\Auth\Http\Requests; use Illuminate\Auth\Events\Lockout; -use Illuminate\Contracts\Validation\Rule; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Support\Facades\RateLimiter; use Illuminate\Support\Str; @@ -47,7 +46,7 @@ public function clearRateLimited(): void */ public function throttleKey(): string { - return Str::transliterate(Str::lower($this->input('login_id')) . '|' . $this->ip()); + return Str::transliterate(Str::lower($this->input('login_id')).'|'.$this->ip()); } /** @@ -65,7 +64,7 @@ public function hitRateLimited(): void */ public function ensureIsNotRateLimited(): void { - if (!RateLimiter::tooManyAttempts($this->throttleKey(), 5)) { + if (! RateLimiter::tooManyAttempts($this->throttleKey(), 5)) { return; } diff --git a/src/Http/Requests/StoreRoleRequest.php b/src/Http/Requests/StoreRoleRequest.php index 7c3b43e..c7c22f2 100644 --- a/src/Http/Requests/StoreRoleRequest.php +++ b/src/Http/Requests/StoreRoleRequest.php @@ -3,7 +3,6 @@ namespace Fintech\Auth\Http\Requests; use Fintech\Auth\Models\Role; -use Illuminate\Contracts\Validation\ValidationRule; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Validation\Rule; @@ -24,7 +23,7 @@ public function authorize(): bool */ public function rules(): array { - $uniqueRule = 'unique:' . config('fintech.auth.role_model', Role::class) . ',name'; + $uniqueRule = 'unique:'.config('fintech.auth.role_model', Role::class).',name'; return [ 'name' => ['required', 'string', 'min:5', 'max:255', $uniqueRule], diff --git a/src/Http/Requests/StoreTeamRequest.php b/src/Http/Requests/StoreTeamRequest.php index 193df35..858577b 100644 --- a/src/Http/Requests/StoreTeamRequest.php +++ b/src/Http/Requests/StoreTeamRequest.php @@ -3,7 +3,6 @@ namespace Fintech\Auth\Http\Requests; use Fintech\Auth\Models\Team; -use Illuminate\Contracts\Validation\ValidationRule; use Illuminate\Foundation\Http\FormRequest; class StoreTeamRequest extends FormRequest @@ -23,7 +22,7 @@ public function authorize(): bool */ public function rules(): array { - $uniqueRule = 'unique:' . config('fintech.auth.team_model', Team::class) . ',name'; + $uniqueRule = 'unique:'.config('fintech.auth.team_model', Team::class).',name'; return [ 'name' => ['required', 'string', 'min:5', 'max:255', $uniqueRule], diff --git a/src/Http/Requests/StoreUserRequest.php b/src/Http/Requests/StoreUserRequest.php index c313f2a..349339c 100644 --- a/src/Http/Requests/StoreUserRequest.php +++ b/src/Http/Requests/StoreUserRequest.php @@ -2,7 +2,6 @@ namespace Fintech\Auth\Http\Requests; -use Illuminate\Contracts\Validation\ValidationRule; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Validation\Rules\Password; diff --git a/src/Http/Requests/UpdateRoleRequest.php b/src/Http/Requests/UpdateRoleRequest.php index 19bfc79..300693e 100644 --- a/src/Http/Requests/UpdateRoleRequest.php +++ b/src/Http/Requests/UpdateRoleRequest.php @@ -3,7 +3,6 @@ namespace Fintech\Auth\Http\Requests; use Fintech\Auth\Models\Role; -use Illuminate\Contracts\Validation\ValidationRule; use Illuminate\Foundation\Http\FormRequest; use Illuminate\Validation\Rule; @@ -24,7 +23,7 @@ public function authorize(): bool */ public function rules(): array { - $uniqueRule = 'unique:' . config('fintech.auth.role_model', Role::class) . ',name'; + $uniqueRule = 'unique:'.config('fintech.auth.role_model', Role::class).',name'; return [ 'name' => ['required', 'string', 'min:5', 'max:255', $uniqueRule], diff --git a/src/Http/Requests/UpdateTeamRequest.php b/src/Http/Requests/UpdateTeamRequest.php index 3721f7f..c173ebd 100644 --- a/src/Http/Requests/UpdateTeamRequest.php +++ b/src/Http/Requests/UpdateTeamRequest.php @@ -3,7 +3,6 @@ namespace Fintech\Auth\Http\Requests; use Fintech\Auth\Models\Team; -use Illuminate\Contracts\Validation\ValidationRule; use Illuminate\Foundation\Http\FormRequest; class UpdateTeamRequest extends FormRequest @@ -23,7 +22,7 @@ public function authorize(): bool */ public function rules(): array { - $uniqueRule = 'unique:' . config('fintech.auth.team_model', Team::class) . ',name'; + $uniqueRule = 'unique:'.config('fintech.auth.team_model', Team::class).',name'; return [ 'name' => ['required', 'string', 'min:5', 'max:255', $uniqueRule], diff --git a/src/Http/Requests/UpdateUserRequest.php b/src/Http/Requests/UpdateUserRequest.php index 623a199..810d31e 100644 --- a/src/Http/Requests/UpdateUserRequest.php +++ b/src/Http/Requests/UpdateUserRequest.php @@ -2,7 +2,6 @@ namespace Fintech\Auth\Http\Requests; -use Illuminate\Contracts\Validation\ValidationRule; use Illuminate\Foundation\Http\FormRequest; class UpdateUserRequest extends FormRequest