Passed
Push — main ( abebdb...9c1f0d )
by ikechukwu
09:14 queued 02:52
created
Tests/migrations/2022_09_12_005402_create_books_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/RequirePinServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,11 +30,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.
src/routes/web.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Services/PinService.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.