Passed
Push — master ( 74f1ac...ae0ea4 )
by Darko
11:41
created
app/Extensions/helper/helpers.php 1 patch
Spacing   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 use Symfony\Component\Process\Process;
16 16
 use Zip as ZipStream;
17 17
 
18
-if (! function_exists('getRawHtml')) {
18
+if (!function_exists('getRawHtml')) {
19 19
     /**
20 20
      * @param  bool  $cookie
21 21
      * @return bool|mixed|string
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     }
51 51
 }
52 52
 
53
-if (! function_exists('makeFieldLinks')) {
53
+if (!function_exists('makeFieldLinks')) {
54 54
     /**
55 55
      * @return string
56 56
      *
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     }
81 81
 }
82 82
 
83
-if (! function_exists('getUserBrowseOrder')) {
83
+if (!function_exists('getUserBrowseOrder')) {
84 84
     /**
85 85
      * @param  string  $orderBy
86 86
      */
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
     }
107 107
 }
108 108
 
109
-if (! function_exists('getUserBrowseOrdering')) {
109
+if (!function_exists('getUserBrowseOrdering')) {
110 110
     function getUserBrowseOrdering(): array
111 111
     {
112 112
         return [
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
     }
137 137
 }
138 138
 
139
-if (! function_exists('getSimilarName')) {
139
+if (!function_exists('getSimilarName')) {
140 140
     /**
141 141
      * @param  string  $name
142 142
      */
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
     }
147 147
 }
148 148
 
149
-if (! function_exists('human_filesize')) {
149
+if (!function_exists('human_filesize')) {
150 150
     /**
151 151
      * @param  int  $decimals
152 152
      */
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
     }
160 160
 }
161 161
 
162
-if (! function_exists('bcdechex')) {
162
+if (!function_exists('bcdechex')) {
163 163
     /**
164 164
      * @return string
165 165
      */
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
     }
177 177
 }
178 178
 
179
-if (! function_exists('runCmd')) {
179
+if (!function_exists('runCmd')) {
180 180
     /**
181 181
      * Run CLI command.
182 182
      *
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
     }
205 205
 }
206 206
 
207
-if (! function_exists('escapeString')) {
207
+if (!function_exists('escapeString')) {
208 208
 
209 209
     function escapeString($string): string
210 210
     {
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
     }
213 213
 }
214 214
 
215
-if (! function_exists('realDuration')) {
215
+if (!function_exists('realDuration')) {
216 216
 
217 217
     function realDuration($milliseconds): string
218 218
     {
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
     }
223 223
 }
224 224
 
225
-if (! function_exists('is_it_json')) {
225
+if (!function_exists('is_it_json')) {
226 226
     /**
227 227
      * @throws JsonException
228 228
      */
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
     }
238 238
 }
239 239
 
240
-if (! function_exists('getStreamingZip')) {
240
+if (!function_exists('getStreamingZip')) {
241 241
     /**
242 242
      * @throws Exception
243 243
      */
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
     }
265 265
 }
266 266
 
267
-if (! function_exists('release_flag')) {
267
+if (!function_exists('release_flag')) {
268 268
     // Function inspired by c0r3@newznabforums adds country flags on the browse page.
269 269
     /**
270 270
      * @param  string  $text  Text to match against.
@@ -401,7 +401,7 @@  discard block
 block discarded – undo
401 401
     }
402 402
 }
403 403
 
404
-if (! function_exists('getReleaseCover')) {
404
+if (!function_exists('getReleaseCover')) {
405 405
     /**
406 406
      * Get the cover image URL for a release based on its type and ID
407 407
      *
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
         $coverId = null;
415 415
 
416 416
         // Helper function to get value from object or array
417
-        $getValue = function ($data, $key) {
417
+        $getValue = function($data, $key) {
418 418
             if (is_array($data)) {
419 419
                 return $data[$key] ?? null;
420 420
             } elseif (is_object($data)) {
@@ -433,25 +433,25 @@  discard block
 block discarded – undo
433 433
         $xxxinfo_id = $getValue($release, 'xxxinfo_id');
434 434
         $anidbid = $getValue($release, 'anidbid');
435 435
 
436
-        if (! empty($imdbid) && $imdbid > 0) {
436
+        if (!empty($imdbid) && $imdbid > 0) {
437 437
             $coverType = 'movies';
438 438
             $coverId = str_pad($imdbid, 7, '0', STR_PAD_LEFT);
439
-        } elseif (! empty($musicinfo_id)) {
439
+        } elseif (!empty($musicinfo_id)) {
440 440
             $coverType = 'music';
441 441
             $coverId = $musicinfo_id;
442
-        } elseif (! empty($consoleinfo_id)) {
442
+        } elseif (!empty($consoleinfo_id)) {
443 443
             $coverType = 'console';
444 444
             $coverId = $consoleinfo_id;
445
-        } elseif (! empty($bookinfo_id)) {
445
+        } elseif (!empty($bookinfo_id)) {
446 446
             $coverType = 'book';
447 447
             $coverId = $bookinfo_id;
448
-        } elseif (! empty($gamesinfo_id)) {
448
+        } elseif (!empty($gamesinfo_id)) {
449 449
             $coverType = 'games';
450 450
             $coverId = $gamesinfo_id;
451
-        } elseif (! empty($xxxinfo_id)) {
451
+        } elseif (!empty($xxxinfo_id)) {
452 452
             $coverType = 'xxx';
453 453
             $coverId = $xxxinfo_id;
454
-        } elseif (! empty($anidbid)) {
454
+        } elseif (!empty($anidbid)) {
455 455
             $coverType = 'anime';
456 456
             $coverId = $anidbid;
457 457
         }
@@ -467,10 +467,10 @@  discard block
 block discarded – undo
467 467
     }
468 468
 }
469 469
 
470
-if (! function_exists('sanitize')) {
470
+if (!function_exists('sanitize')) {
471 471
     function sanitize(array|string $phrases, array $doNotSanitize = []): string
472 472
     {
473
-        if (! is_array($phrases)) {
473
+        if (!is_array($phrases)) {
474 474
             $wordArray = explode(' ', str_replace('.', ' ', $phrases));
475 475
         } else {
476 476
             $wordArray = $phrases;
@@ -481,9 +481,9 @@  discard block
 block discarded – undo
481 481
         foreach ($wordArray as $words) {
482 482
             $words = preg_split('/\s+/', $words);
483 483
             foreach ($words as $st) {
484
-                if (Str::startsWith($st, ['!', '+', '-', '?', '*']) && Str::length($st) > 1 && ! preg_match('/([!+?\-*]){2,}/', $st)) {
484
+                if (Str::startsWith($st, ['!', '+', '-', '?', '*']) && Str::length($st) > 1 && !preg_match('/([!+?\-*]){2,}/', $st)) {
485 485
                     $str = $st;
486
-                } elseif (Str::endsWith($st, ['+', '-', '?', '*']) && Str::length($st) > 1 && ! preg_match('/([!+?\-*]){2,}/', $st)) {
486
+                } elseif (Str::endsWith($st, ['+', '-', '?', '*']) && Str::length($st) > 1 && !preg_match('/([!+?\-*]){2,}/', $st)) {
487 487
                     $str = $st;
488 488
                 } else {
489 489
                     $str = Sanitizer::escape($st, $doNotSanitize);
@@ -498,7 +498,7 @@  discard block
 block discarded – undo
498 498
     }
499 499
 }
500 500
 
501
-if (! function_exists('formatBytes')) {
501
+if (!function_exists('formatBytes')) {
502 502
     /**
503 503
      * Format bytes into human-readable file size.
504 504
      *
@@ -517,7 +517,7 @@  discard block
 block discarded – undo
517 517
     }
518 518
 }
519 519
 
520
-if (! function_exists('csp_nonce')) {
520
+if (!function_exists('csp_nonce')) {
521 521
     /**
522 522
      * Generate a CSP nonce for inline scripts
523 523
      * This should be stored in the request and reused across the request lifecycle
@@ -534,7 +534,7 @@  discard block
 block discarded – undo
534 534
     }
535 535
 }
536 536
 
537
-if (! function_exists('userDate')) {
537
+if (!function_exists('userDate')) {
538 538
     /**
539 539
      * Format a date/time string according to the authenticated user's timezone
540 540
      *
@@ -566,7 +566,7 @@  discard block
 block discarded – undo
566 566
     }
567 567
 }
568 568
 
569
-if (! function_exists('userDateDiffForHumans')) {
569
+if (!function_exists('userDateDiffForHumans')) {
570 570
     /**
571 571
      * Format a date/time string as a human-readable diff according to the authenticated user's timezone
572 572
      *
@@ -597,7 +597,7 @@  discard block
 block discarded – undo
597 597
     }
598 598
 }
599 599
 
600
-if (! function_exists('getAvailableTimezones')) {
600
+if (!function_exists('getAvailableTimezones')) {
601 601
     /**
602 602
      * Get a list of available timezones grouped by region
603 603
      *
Please login to merge, or discard this patch.
app/Console/Commands/ProcessPostProcess.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
         $type = $this->argument('type');
35 35
         $renamed = $this->argument('renamed');
36 36
 
37
-        if (! \in_array($type, ['ama', 'add', 'ani', 'mov', 'nfo', 'tv'], true)) {
37
+        if (!\in_array($type, ['ama', 'add', 'ani', 'mov', 'nfo', 'tv'], true)) {
38 38
             $this->error('Type must be one of: ama, add, ani, mov, nfo, sha, tv');
39 39
             $this->line('');
40 40
             $this->line('ama => Do amazon/books processing');
Please login to merge, or discard this patch.
app/Services/TvProcessor.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -13,9 +13,9 @@  discard block
 block discarded – undo
13 13
 class TvProcessor
14 14
 {
15 15
     // Processing modes
16
-    public const MODE_PIPELINE = 'pipeline';  // Sequential processing (efficient, reduces API calls)
16
+    public const MODE_PIPELINE = 'pipeline'; // Sequential processing (efficient, reduces API calls)
17 17
 
18
-    public const MODE_PARALLEL = 'parallel';  // Parallel processing (faster, more API calls)
18
+    public const MODE_PARALLEL = 'parallel'; // Parallel processing (faster, more API calls)
19 19
 
20 20
     private bool $echooutput;
21 21
 
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
         foreach ($providers as $index => $provider) {
79 79
             // Check if there's any work remaining for this provider
80
-            if (! $this->hasWorkForProvider($provider['name'], $groupID, $guidChar, $processTV)) {
80
+            if (!$this->hasWorkForProvider($provider['name'], $groupID, $guidChar, $processTV)) {
81 81
                 if ($this->echooutput) {
82 82
                     $this->colorCli->primaryOver('  [');
83 83
                     $this->colorCli->warningOver($index + 1);
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 
120 120
         foreach ($providers as $index => $provider) {
121 121
             // Check if there's any work remaining for this stage of the pipeline
122
-            if (! $this->hasWorkForProvider($provider['name'], $groupID, $guidChar, $processTV)) {
122
+            if (!$this->hasWorkForProvider($provider['name'], $groupID, $guidChar, $processTV)) {
123 123
                 if ($this->echooutput) {
124 124
                     $this->colorCli->primaryOver('  [');
125 125
                     $this->colorCli->warningOver($index + 1);
@@ -166,11 +166,11 @@  discard block
 block discarded – undo
166 166
     private function hasWorkForProvider(string $providerName, string $groupID, string $guidChar, int|string $processTV): bool
167 167
     {
168 168
         $statusMap = [
169
-            'Local DB' => 0,   // Process unprocessed releases
170
-            'TVDB' => 0,       // Process unprocessed releases (runs in parallel with LocalDB conceptually)
171
-            'TVMaze' => -1,    // Process releases not found by TVDB
172
-            'TMDB' => -2,      // Process releases not found by TVMaze
173
-            'Trakt' => -3,     // Process releases not found by TMDB
169
+            'Local DB' => 0, // Process unprocessed releases
170
+            'TVDB' => 0, // Process unprocessed releases (runs in parallel with LocalDB conceptually)
171
+            'TVMaze' => -1, // Process releases not found by TVDB
172
+            'TMDB' => -2, // Process releases not found by TVMaze
173
+            'Trakt' => -3, // Process releases not found by TMDB
174 174
         ];
175 175
 
176 176
         $status = $statusMap[$providerName] ?? 0;
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
      */
204 204
     private function displayHeader(string $guidChar = ''): void
205 205
     {
206
-        if (! $this->echooutput) {
206
+        if (!$this->echooutput) {
207 207
             return;
208 208
         }
209 209
 
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
      */
228 228
     private function displayHeaderParallel(string $guidChar = ''): void
229 229
     {
230
-        if (! $this->echooutput) {
230
+        if (!$this->echooutput) {
231 231
             return;
232 232
         }
233 233
 
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
      */
252 252
     private function displayProviderHeader(string $providerName, int $step, int $total): void
253 253
     {
254
-        if (! $this->echooutput) {
254
+        if (!$this->echooutput) {
255 255
             return;
256 256
         }
257 257
 
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
      */
271 271
     private function displayProviderComplete(string $providerName, float $elapsedTime): void
272 272
     {
273
-        if (! $this->echooutput) {
273
+        if (!$this->echooutput) {
274 274
             return;
275 275
         }
276 276
 
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
      */
289 289
     private function displaySummary(): void
290 290
     {
291
-        if (! $this->echooutput) {
291
+        if (!$this->echooutput) {
292 292
             return;
293 293
         }
294 294
 
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
      */
305 305
     private function displaySummaryParallel(float $totalTime): void
306 306
     {
307
-        if (! $this->echooutput) {
307
+        if (!$this->echooutput) {
308 308
             return;
309 309
         }
310 310
 
Please login to merge, or discard this patch.
app/Http/Controllers/GetNzbController.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 
40 40
         // Authenticate and authorize user
41 41
         $userData = $this->authenticateUser($request);
42
-        if (! \is_array($userData)) {
42
+        if (!\is_array($userData)) {
43 43
             return $userData; // Return error response
44 44
         }
45 45
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
         // Validate and sanitize ID parameter
55 55
         $releaseId = $this->validateAndSanitizeId($request);
56
-        if (! \is_string($releaseId)) {
56
+        if (!\is_string($releaseId)) {
57 57
             return $releaseId; // Return error response
58 58
         }
59 59
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      */
72 72
     private function normalizeGuidParameter(Request $request, ?string $guid): void
73 73
     {
74
-        if ($guid !== null && ! $request->has('id')) {
74
+        if ($guid !== null && !$request->has('id')) {
75 75
             $request->merge(['id' => $guid]);
76 76
         }
77 77
     }
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
         }
124 124
 
125 125
         $user = User::getByRssToken($request->input('r'));
126
-        if (! $user) {
126
+        if (!$user) {
127 127
             return Utility::showApiError(100);
128 128
         }
129 129
 
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
     ) {
254 254
         // Get NZB file path and validate
255 255
         $nzbPath = (new NZB)->getNZBPath($releaseId);
256
-        if (! File::exists($nzbPath)) {
256
+        if (!File::exists($nzbPath)) {
257 257
             return Utility::showApiError(300, 'NZB file not found!');
258 258
         }
259 259
 
@@ -309,9 +309,9 @@  discard block
 block discarded – undo
309 309
         ];
310 310
 
311 311
         // Add optional metadata headers
312
-        if (! empty($releaseData->imdbid) && $releaseData->imdbid > 0) {
312
+        if (!empty($releaseData->imdbid) && $releaseData->imdbid > 0) {
313 313
             $headers['X-DNZB-MoreInfo'] = "http://www.imdb.com/title/tt{$releaseData->imdbid}";
314
-        } elseif (! empty($releaseData->tvdb) && $releaseData->tvdb > 0) {
314
+        } elseif (!empty($releaseData->tvdb) && $releaseData->tvdb > 0) {
315 315
             $headers['X-DNZB-MoreInfo'] = "http://www.thetvdb.com/?tab=series&id={$releaseData->tvdb}";
316 316
         }
317 317
 
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
         $lastChunk = false;
340 340
 
341 341
         // Stream and modify content in chunks
342
-        while (! gzeof($fileHandle)) {
342
+        while (!gzeof($fileHandle)) {
343 343
             $chunk = gzread($fileHandle, self::BUFFER_SIZE);
344 344
             if ($chunk === false) {
345 345
                 break;
Please login to merge, or discard this patch.
app/Http/Controllers/AdultController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,11 +44,11 @@
 block discarded – undo
44 44
         $rslt = $adult->getXXXRange($page, $catarray, $offset, config('nntmux.items_per_page'), $orderby, -1, $this->userdata['categoryexclusions']);
45 45
         $results = $this->paginate($rslt ?? [], $rslt[0]->_totalcount ?? 0, config('nntmux.items_per_page'), $page, $request->url(), $request->query());
46 46
 
47
-        $title = ($request->has('title') && ! empty($request->input('title'))) ? stripslashes($request->input('title')) : '';
47
+        $title = ($request->has('title') && !empty($request->input('title'))) ? stripslashes($request->input('title')) : '';
48 48
 
49
-        $actors = ($request->has('actors') && ! empty($request->input('actors'))) ? stripslashes($request->input('actors')) : '';
49
+        $actors = ($request->has('actors') && !empty($request->input('actors'))) ? stripslashes($request->input('actors')) : '';
50 50
 
51
-        $director = ($request->has('director') && ! empty($request->input('director'))) ? stripslashes($request->input('director')) : '';
51
+        $director = ($request->has('director') && !empty($request->input('director'))) ? stripslashes($request->input('director')) : '';
52 52
 
53 53
         $genres = $adult->getAllGenres(true);
54 54
         $genre = ($request->has('genre') && \in_array($request->input('genre'), $genres, false)) ? $request->input('genre') : '';
Please login to merge, or discard this patch.
app/Console/Commands/RenameOtherMiscReleases.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         $show = $this->option('show');
53 53
         $sizeTolerance = (float) $this->option('size-tolerance');
54 54
 
55
-        if ($limit && ! is_numeric($limit)) {
55
+        if ($limit && !is_numeric($limit)) {
56 56
             $this->error('Limit must be a numeric value.');
57 57
 
58 58
             return Command::FAILURE;
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
             // Try to match by title and size
128 128
             $matched = $this->matchByTitleAndSize($release, $cleanName, $dryRun, $show, $sizeTolerance, $categorize);
129 129
 
130
-            if (! $matched) {
130
+            if (!$matched) {
131 131
                 // Try to match by filename and size
132 132
                 $matched = $this->matchByFilenameAndSize($release, $cleanName, $dryRun, $show, $sizeTolerance, $categorize);
133 133
             }
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
                 $this->matched++;
137 137
             }
138 138
 
139
-            if (! $show && $this->checked % 10 === 0) {
139
+            if (!$show && $this->checked % 10 === 0) {
140 140
                 $percent = round(($this->checked / $total) * 100, 1);
141 141
                 $this->info(
142 142
                     "Progress: {$percent}% ({$this->checked}/{$total}) | ".
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
             }
146 146
         }
147 147
 
148
-        if (! $show) {
148
+        if (!$show) {
149 149
             echo PHP_EOL;
150 150
         }
151 151
     }
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
                 $this->matched++;
191 191
             }
192 192
 
193
-            if (! $show && ($this->checked - $initialChecked) % 10 === 0) {
193
+            if (!$show && ($this->checked - $initialChecked) % 10 === 0) {
194 194
                 $percent = round((($this->checked - $initialChecked) / $total) * 100, 1);
195 195
                 $this->info(
196 196
                     "Progress: {$percent}% ({$this->checked}/{$total}) | ".
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
             }
200 200
         }
201 201
 
202
-        if (! $show) {
202
+        if (!$show) {
203 203
             echo PHP_EOL;
204 204
         }
205 205
     }
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
 
220 220
         $predb = Predb::query()
221 221
             ->where('title', $cleanName)
222
-            ->where(function ($query) use ($sizeMin, $sizeMax) {
222
+            ->where(function($query) use ($sizeMin, $sizeMax) {
223 223
                 $query->whereNull('size')
224 224
                     ->orWhereBetween('size', [$sizeMin, $sizeMax]);
225 225
             })
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
 
248 248
         $predb = Predb::query()
249 249
             ->where('filename', $cleanName)
250
-            ->where(function ($query) use ($sizeMin, $sizeMax) {
250
+            ->where(function($query) use ($sizeMin, $sizeMax) {
251 251
                 $query->whereNull('size')
252 252
                     ->orWhereBetween('size', [$sizeMin, $sizeMax]);
253 253
             })
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
 
312 312
         if ($release->searchname === $predb->title) {
313 313
             // Names already match, just update predb_id
314
-            if (! $dryRun) {
314
+            if (!$dryRun) {
315 315
                 Release::where('id', $release->id)->update(['predb_id' => $predb->id]);
316 316
             }
317 317
 
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
         $newCategory = null;
343 343
         $newCategoryName = $oldCategoryName;
344 344
 
345
-        if (! $dryRun) {
345
+        if (!$dryRun) {
346 346
             // Update release
347 347
             Release::where('id', $release->id)->update([
348 348
                 'name' => $newName,
Please login to merge, or discard this patch.
app/Console/Commands/TmuxAttach.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
 
35 35
         $sessionManager = new TmuxSessionManager($sessionName);
36 36
 
37
-        if (! $sessionManager->sessionExists()) {
37
+        if (!$sessionManager->sessionExists()) {
38 38
             $this->error("❌ Session '{$sessionName}' does not exist");
39 39
             $this->info("
Please login to merge, or discard this patch.
app/Console/Commands/UpdateNNTmuxComposer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
             $this->info('
Please login to merge, or discard this patch.
app/Console/Commands/UpdateNNTmux.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -87,16 +87,16 @@  discard block
 block discarded – undo
87 87
     {
88 88
         $steps = 3; // prepare, finalize, cleanup
89 89
 
90
-        if (! $this->option('skip-git')) {
90
+        if (!$this->option('skip-git')) {
91 91
             $steps++;
92 92
         }
93
-        if (! $this->option('skip-composer')) {
93
+        if (!$this->option('skip-composer')) {
94 94
             $steps++;
95 95
         }
96
-        if (! $this->option('skip-npm')) {
96
+        if (!$this->option('skip-npm')) {
97 97
             $steps += 2;
98 98
         } // install + build
99
-        if (! $this->option('skip-db')) {
99
+        if (!$this->option('skip-db')) {
100 100
             $steps++;
101 101
         }
102 102
 
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 
115 115
         // Check if app is in maintenance mode
116 116
         $this->wasInMaintenance = App::isDownForMaintenance();
117
-        if (! $this->wasInMaintenance) {
117
+        if (!$this->wasInMaintenance) {
118 118
             $this->call('down', [
119 119
                 '--render' => 'errors::maintenance',
120 120
                 '--retry' => 120,
@@ -138,22 +138,22 @@  discard block
 block discarded – undo
138 138
     private function executeUpdateSteps(): void
139 139
     {
140 140
         // Git operations
141
-        if (! $this->option('skip-git')) {
141
+        if (!$this->option('skip-git')) {
142 142
             $this->performGitUpdate();
143 143
         }
144 144
 
145 145
         // Composer operations
146
-        if (! $this->option('skip-composer')) {
146
+        if (!$this->option('skip-composer')) {
147 147
             $this->performComposerUpdate();
148 148
         }
149 149
 
150 150
         // Database migrations
151
-        if (! $this->option('skip-db')) {
151
+        if (!$this->option('skip-db')) {
152 152
             $this->performDatabaseUpdate();
153 153
         }
154 154
 
155 155
         // NPM operations
156
-        if (! $this->option('skip-npm')) {
156
+        if (!$this->option('skip-npm')) {
157 157
             $this->performNpmOperations();
158 158
         }
159 159
 
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
     {
217 217
         // Check if package.json has changed
218 218
         $packageLockExists = File::exists(base_path('package-lock.json'));
219
-        $shouldInstall = ! $packageLockExists || $this->option('force');
219
+        $shouldInstall = !$packageLockExists || $this->option('force');
220 220
 
221 221
         if ($shouldInstall) {
222 222
             $this->info('
Please login to merge, or discard this patch.