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 Oct 5, 2023
1 parent 349b09c commit 440c34a
Show file tree
Hide file tree
Showing 14 changed files with 6 additions and 20 deletions.
1 change: 0 additions & 1 deletion src/Http/Requests/ImportRoleRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Fintech\Auth\Http\Requests;

use Illuminate\Contracts\Validation\ValidationRule;
use Illuminate\Foundation\Http\FormRequest;

class ImportRoleRequest extends FormRequest
Expand Down
1 change: 0 additions & 1 deletion src/Http/Requests/ImportTeamRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Fintech\Auth\Http\Requests;

use Illuminate\Contracts\Validation\ValidationRule;
use Illuminate\Foundation\Http\FormRequest;

class ImportTeamRequest extends FormRequest
Expand Down
1 change: 0 additions & 1 deletion src/Http/Requests/ImportUserRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Fintech\Auth\Http\Requests;

use Illuminate\Contracts\Validation\ValidationRule;
use Illuminate\Foundation\Http\FormRequest;

class ImportUserRequest extends FormRequest
Expand Down
1 change: 0 additions & 1 deletion src/Http/Requests/IndexProfileRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion src/Http/Requests/IndexRoleRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion src/Http/Requests/IndexTeamRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion src/Http/Requests/IndexUserRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions src/Http/Requests/LoginRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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());
}

/**
Expand All @@ -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;
}

Expand Down
3 changes: 1 addition & 2 deletions src/Http/Requests/StoreRoleRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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],
Expand Down
3 changes: 1 addition & 2 deletions src/Http/Requests/StoreTeamRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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],
Expand Down
1 change: 0 additions & 1 deletion src/Http/Requests/StoreUserRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Fintech\Auth\Http\Requests;

use Illuminate\Contracts\Validation\ValidationRule;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rules\Password;

Expand Down
3 changes: 1 addition & 2 deletions src/Http/Requests/UpdateRoleRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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],
Expand Down
3 changes: 1 addition & 2 deletions src/Http/Requests/UpdateTeamRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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],
Expand Down
1 change: 0 additions & 1 deletion src/Http/Requests/UpdateUserRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

namespace Fintech\Auth\Http\Requests;

use Illuminate\Contracts\Validation\ValidationRule;
use Illuminate\Foundation\Http\FormRequest;

class UpdateUserRequest extends FormRequest
Expand Down

0 comments on commit 440c34a

Please sign in to comment.