@@ -30,11 +30,11 @@ discard block |
||
30 | 30 | $router = $this->app->make(Router::class); |
31 | 31 | $router->aliasMiddleware('require.pin', RequirePin::class); |
32 | 32 | |
33 | - Route::middleware('api')->prefix('api')->group(function () { |
|
33 | + Route::middleware('api')->prefix('api')->group(function() { |
|
34 | 34 | $this->loadRoutesFrom(static::ROUTE_API); |
35 | 35 | }); |
36 | 36 | |
37 | - Route::middleware('web')->group(function () { |
|
37 | + Route::middleware('web')->group(function() { |
|
38 | 38 | $this->loadRoutesFrom(static::ROUTE_WEB); |
39 | 39 | }); |
40 | 40 | |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | |
70 | 70 | $this->app->make(\Ikechukwukalu\Requirepin\Controllers\PinController::class); |
71 | 71 | |
72 | - $this->app->bind(ThrottleRequestsService::class, function (Application $app) { |
|
72 | + $this->app->bind(ThrottleRequestsService::class, function(Application $app) { |
|
73 | 73 | return new ThrottleRequestsService( |
74 | 74 | config('sanctumauthstarter.login.maxAttempts', 3), |
75 | 75 | config('sanctumauthstarter.login.delayMinutes', 1) |
@@ -3,7 +3,7 @@ |
||
3 | 3 | use Illuminate\Support\Facades\Route; |
4 | 4 | use Ikechukwukalu\Requirepin\Controllers\PinController; |
5 | 5 | |
6 | -Route::middleware(config('requirepin.auth_route_guard', 'auth'))->group(function () { |
|
6 | +Route::middleware(config('requirepin.auth_route_guard', 'auth'))->group(function() { |
|
7 | 7 | Route::post('change/pin', [PinController::class, 'changePin']) |
8 | 8 | ->name('changePinWeb'); |
9 | 9 |
@@ -80,7 +80,7 @@ |
||
80 | 80 | ? $this->httpResponse($request, |
81 | 81 | trans('requirepin::general.fail'), 400, |
82 | 82 | ['message' => trans('requirepin::pin.unknown_error')] |
83 | - ) |
|
83 | + ) |
|
84 | 84 | : redirect($requirePin->redirect_to)->with('return_payload', |
85 | 85 | session('return_payload')); |
86 | 86 | } |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | if ($response) { |
128 | 128 | $requirePin = $this->getRequirePin($uuid); |
129 | 129 | |
130 | - if(!$requirePin) { |
|
130 | + if (!$requirePin) { |
|
131 | 131 | return ['message' => |
132 | 132 | trans('requirepin::pin.invalid_url')]; |
133 | 133 | } |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | */ |
167 | 167 | public function pinUrlHasValidUUID(string $uuid): ?array |
168 | 168 | { |
169 | - if(!$this->getRequirePin($uuid)) { |
|
169 | + if (!$this->getRequirePin($uuid)) { |
|
170 | 170 | return ['message' => |
171 | 171 | trans('requirepin::pin.invalid_url')]; |
172 | 172 | } |
@@ -452,7 +452,7 @@ discard block |
||
452 | 452 | config('requirepin.input', '_pin') => null |
453 | 453 | ]); |
454 | 454 | |
455 | - foreach($this->payload as $key => $item) { |
|
455 | + foreach ($this->payload as $key => $item) { |
|
456 | 456 | $request->merge([$key => $item]); |
457 | 457 | } |
458 | 458 | } |
@@ -5,7 +5,7 @@ |
||
5 | 5 | |
6 | 6 | $authMiddleware = config('requiredpin.auth_middleware'); |
7 | 7 | |
8 | -Route::middleware('auth:'.$authMiddleware)->group(function () { |
|
8 | +Route::middleware('auth:'.$authMiddleware)->group(function() { |
|
9 | 9 | Route::post('change/pin', [PinController::class, 'changePin']) |
10 | 10 | ->name('changePin'); |
11 | 11 |