Passed
Push — main ( 25527e...1ae29f )
by ikechukwu
05:44
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/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 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
@@ -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_middleware_guard', 'auth'))->group(function () {
6
+Route::middleware(config('requirepin.auth_middleware_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.