@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('books', function (Blueprint $table) { |
|
| 16 | + Schema::create('books', function(Blueprint $table) { |
|
| 17 | 17 | $table->id(); |
| 18 | 18 | $table->string('name'); |
| 19 | 19 | $table->string('isbn')->unique(); |
@@ -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 | |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | */ |
| 144 | 144 | public function pinUrlHasValidUUID(string $uuid): ?array |
| 145 | 145 | { |
| 146 | - if(!$this->getRequirePin($uuid)) { |
|
| 146 | + if (!$this->getRequirePin($uuid)) { |
|
| 147 | 147 | return ['message' => |
| 148 | 148 | trans('requirepin::pin.invalid_url')]; |
| 149 | 149 | } |
@@ -413,7 +413,7 @@ discard block |
||
| 413 | 413 | config('requirepin.input', '_pin') => null |
| 414 | 414 | ]); |
| 415 | 415 | |
| 416 | - foreach($this->payload as $key => $item) { |
|
| 416 | + foreach ($this->payload as $key => $item) { |
|
| 417 | 417 | $request->merge([$key => $item]); |
| 418 | 418 | } |
| 419 | 419 | } |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | ? $this->httpResponse($request, |
| 81 | 81 | trans('requirepin::general.fail'), 400, |
| 82 | 82 | ['message' => trans('requirepin::pin.not_allowed')] |
| 83 | - ) |
|
| 83 | + ) |
|
| 84 | 84 | : redirect($requirePin->redirect_to)->with('return_payload', |
| 85 | 85 | session('return_payload')); |
| 86 | 86 | } |