Passed
Push — master ( bedca3...f55403 )
by Darko
17:12
created
routes/web.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -86,20 +86,20 @@  discard block
 block discarded – undo
86 86
 Route::post('login', [LoginController::class, 'login'])->name('login');
87 87
 Route::get('logout', [LoginController::class, 'logout'])->name('logout');
88 88
 
89
-Route::middleware('isVerified')->group(function () {
89
+Route::middleware('isVerified')->group(function() {
90 90
     Route::get('resetpassword', [ResetPasswordController::class, 'reset']);
91 91
     Route::post('resetpassword', [ResetPasswordController::class, 'reset']);
92 92
 
93 93
     Route::get('profile', [ProfileController::class, 'show']);
94 94
 
95
-    Route::prefix('browse')->group(function () {
95
+    Route::prefix('browse')->group(function() {
96 96
         Route::get('tags', [BrowseController::class, 'tags']);
97 97
         Route::get('group', [BrowseController::class, 'group']);
98 98
         Route::get('All', [BrowseController::class, 'index']);
99 99
         Route::get('{parentCategory}/{id?}', [BrowseController::class, 'show'])->middleware('clearance');
100 100
     });
101 101
 
102
-    Route::prefix('cart')->group(function () {
102
+    Route::prefix('cart')->group(function() {
103 103
         Route::get('index', [CartController::class, 'index']);
104 104
         Route::post('index', [CartController::class, 'index']);
105 105
         Route::get('add', [CartController::class, 'store']);
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 
133 133
     Route::post('failed', [FailedReleasesController::class, 'failed'])->name('failed');
134 134
 
135
-    Route::middleware('clearance')->group(function () {
135
+    Route::middleware('clearance')->group(function() {
136 136
         Route::get('Games', [GamesController::class, 'show'])->name('Games');
137 137
         Route::post('Games', [GamesController::class, 'show'])->name('Games');
138 138
 
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
 
248 248
 Route::post('forum-delete/{id}', [ForumController::class, 'destroy'])->middleware('role:Admin');
249 249
 
250
-Route::middleware('role:Admin', '2fa')->prefix('admin')->group(function () {
250
+Route::middleware('role:Admin', '2fa')->prefix('admin')->group(function() {
251 251
     Route::get('index', [AdminPageController::class, 'index']);
252 252
     Route::get('anidb-delete/{id}', [AdminAnidbController::class, 'destroy']);
253 253
     Route::post('anidb-delete/{id}', [AdminAnidbController::class, 'destroy']);
@@ -366,11 +366,11 @@  discard block
 block discarded – undo
366 366
     Route::post('group-list-inactive', [AdminGroupController::class, 'inactive']);
367 367
 });
368 368
 
369
-Route::middleware('role_or_permission:Admin|Moderator|edit release')->prefix('admin')->group(function () {
369
+Route::middleware('role_or_permission:Admin|Moderator|edit release')->prefix('admin')->group(function() {
370 370
     Route::get('release-edit', [AdminReleasesController::class, 'edit']);
371 371
     Route::post('release-edit', [AdminReleasesController::class, 'edit']);
372 372
 });
373 373
 
374
-Route::post('2faVerify', function () {
374
+Route::post('2faVerify', function() {
375 375
     return redirect()->to(URL()->previous());
376 376
 })->name('2faVerify')->middleware('2fa');
Please login to merge, or discard this patch.
misc/update/update_binaries.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 }
20 20
 $binaries = new Binaries(['NNTP' => $nntp]);
21 21
 
22
-if (isset($argv[1]) && ! is_numeric($argv[1])) {
22
+if (isset($argv[1]) && !is_numeric($argv[1])) {
23 23
     $groupName = $argv[1];
24 24
     $colorCli->header("Updating group: $groupName");
25 25
 
@@ -36,8 +36,7 @@  discard block
 block discarded – undo
36 36
     }
37 37
 } else {
38 38
     try {
39
-        $binaries->updateAllGroups((isset($argv[1]) && is_numeric($argv[1]) && $argv[1] > 0 ? $argv[1] :
40
-            $maxHeaders));
39
+        $binaries->updateAllGroups((isset($argv[1]) && is_numeric($argv[1]) && $argv[1] > 0 ? $argv[1] : $maxHeaders));
41 40
     } catch (Throwable $e) {
42 41
         Illuminate\Support\Facades\Log::error($e->getMessage());
43 42
     }
Please login to merge, or discard this patch.
misc/update/postprocess.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     'false',
35 35
 ];
36 36
 
37
-if (! isset($argv[1], $argv[2]) || ! in_array($argv[1], $args, false) || ! in_array($argv[2], $bool, false)) {
37
+if (!isset($argv[1], $argv[2]) || !in_array($argv[1], $args, false) || !in_array($argv[2], $bool, false)) {
38 38
     exit(
39 39
         (new Blacklight\ColorCLI())->error(
40 40
             "\nIncorrect arguments.\n"
Please login to merge, or discard this patch.
app/Http/Controllers/BtcPaymentController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@
 block discarded – undo
115 115
             $user = User::query()->where('email', '=', $payload['metadata']['buyerEmail'])->first();
116 116
             if ($user) {
117 117
                 $checkOrder = Payment::query()->where('invoice_id', '=', $payload['invoiceId'])->where('payment_status', '=', 'Settled')->first();
118
-                if (! empty($checkOrder)) {
118
+                if (!empty($checkOrder)) {
119 119
                     Log::error('Duplicate BTCPay webhook: '.$payload['webhookId']);
120 120
 
121 121
                     return response('Not Found', 404);
Please login to merge, or discard this patch.