Passed
Push — main ( 106488...4b3208 )
by ikechukwu
09:39 queued 03:55
created
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'), 500,
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.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
      */
142 142
     public function pinUrlHasValidUUID(string $uuid): ?array
143 143
     {
144
-        if(!$this->getRequirePin($uuid)) {
144
+        if (!$this->getRequirePin($uuid)) {
145 145
             return ['message' =>
146 146
                 trans('requirepin::pin.invalid_url')];
147 147
         }
@@ -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
     }
@@ -480,7 +480,7 @@  discard block
 block discarded – undo
480 480
     private function checkMaxTrial(RequirePin $requirePin): void
481 481
     {
482 482
         $maxTrial = $requirePin->retry;
483
-        $maxTrial ++;
483
+        $maxTrial++;
484 484
 
485 485
         if ($maxTrial >= config('requirepin.max_trial', 3)) {
486 486
             $requirePin->cancelled_at = now();
Please login to merge, or discard this patch.