@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | */ |
| 131 | 131 | public function pinUrlHasValidUUID(string $uuid): ?array |
| 132 | 132 | { |
| 133 | - if(!$this->getRequirePin($uuid)) { |
|
| 133 | + if (!$this->getRequirePin($uuid)) { |
|
| 134 | 134 | return ['message' => |
| 135 | 135 | trans('requirepin::pin.invalid_url')]; |
| 136 | 136 | } |
@@ -402,7 +402,7 @@ discard block |
||
| 402 | 402 | config('requirepin.input', '_pin') => null |
| 403 | 403 | ]); |
| 404 | 404 | |
| 405 | - foreach($this->payload as $key => $item) { |
|
| 405 | + foreach ($this->payload as $key => $item) { |
|
| 406 | 406 | $request->merge([$key => $item]); |
| 407 | 407 | } |
| 408 | 408 | } |
@@ -469,7 +469,7 @@ discard block |
||
| 469 | 469 | private static function checkMaxTrial(RequirePin $requirePin): void |
| 470 | 470 | { |
| 471 | 471 | $maxTrial = $requirePin->retry; |
| 472 | - $maxTrial ++; |
|
| 472 | + $maxTrial++; |
|
| 473 | 473 | |
| 474 | 474 | if ($maxTrial >= config('requirepin.max_trial', 3)) { |
| 475 | 475 | $requirePin->approved_at = now(); |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | use Illuminate\Support\Facades\Route; |
| 5 | 5 | use Ikechukwukalu\Requirepin\Controllers\PinController; |
| 6 | 6 | |
| 7 | -Route::middleware('auth')->group(function () { |
|
| 7 | +Route::middleware('auth')->group(function() { |
|
| 8 | 8 | Route::post('change/pin', [PinController::class, 'changePin']) |
| 9 | 9 | ->name('changePinWeb'); |
| 10 | 10 | |
@@ -27,11 +27,11 @@ |
||
| 27 | 27 | protected function defineRoutes($router) |
| 28 | 28 | { |
| 29 | 29 | // Define routes. |
| 30 | - $router->get('login', function () { |
|
| 30 | + $router->get('login', function() { |
|
| 31 | 31 | return 'login'; |
| 32 | 32 | })->name('login'); |
| 33 | 33 | |
| 34 | - $router->get('change/pin', function () { |
|
| 34 | + $router->get('change/pin', function() { |
|
| 35 | 35 | return 'changePinView'; |
| 36 | 36 | })->name('changePinView'); |
| 37 | 37 | |