Passed
Push — main ( 528610...f3fbc0 )
by ikechukwu
10:02 queued 15s
created
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
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.unknown_error')]
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.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/routes/api.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.