Passed
Push — main ( 350e40...3eb873 )
by ikechukwu
02:57
created
src/Services/PinService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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();
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
@@ -4,7 +4,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Tests/TestCase.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,11 +27,11 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.