Passed
Push — master ( 82c975...d842e2 )
by Darko
09:44
created
app/Console/Commands/RemoveCrapReleases.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         $blacklistId = $this->option('blacklist-id') ?? '';
28 28
         $delete = $this->option('delete');
29 29
 
30
-        if (! $delete) {
30
+        if (!$delete) {
31 31
             $this->warn('Running in DRY-RUN mode. Use --delete to actually remove releases.');
32 32
         }
33 33
 
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
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
         $type = $this->argument('type');
32 32
         $renamed = $this->argument('renamed');
33 33
 
34
-        if (! \in_array($type, ['ama', 'add', 'ani', 'mov', 'nfo', 'sha', 'tv'], true)) {
34
+        if (!\in_array($type, ['ama', 'add', 'ani', 'mov', 'nfo', 'sha', 'tv'], true)) {
35 35
             $this->error('Type must be one of: ama, add, ani, mov, nfo, sha, tv');
36 36
             $this->line('');
37 37
             $this->line('ama => Do amazon/books processing');
Please login to merge, or discard this patch.
app/Http/Controllers/Admin/AdminTmuxController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
                 // Handle fix_crap checkbox array - convert to comma-separated string
26 26
                 if (isset($data['fix_crap']) && is_array($data['fix_crap'])) {
27 27
                     $data['fix_crap'] = implode(',', $data['fix_crap']);
28
-                } elseif (! isset($data['fix_crap'])) {
28
+                } elseif (!isset($data['fix_crap'])) {
29 29
                     // If no checkboxes selected, save empty string
30 30
                     $data['fix_crap'] = '';
31 31
                 }
Please login to merge, or discard this patch.
app/Services/Tmux/TmuxMonitorService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
         // Initialize modsettings (for backward compatibility with old TmuxRun.php)
55 55
         // Parse fix_crap setting into an array
56 56
         $fixCrapSetting = $this->runVar['settings']['fix_crap'] ?? '';
57
-        $fixCrapTypes = ! empty($fixCrapSetting)
57
+        $fixCrapTypes = !empty($fixCrapSetting)
58 58
             ? (is_array($fixCrapSetting) ? $fixCrapSetting : explode(',', $fixCrapSetting))
59 59
             : [];
60 60
         $fixCrapTypes = array_filter($fixCrapTypes);
Please login to merge, or discard this patch.
app/Services/Tmux/TmuxTaskRunner.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -33,16 +33,16 @@  discard block
 block discarded – undo
33 33
         $enabled = $config['enabled'] ?? true;
34 34
         $workAvailable = $config['work_available'] ?? true;
35 35
 
36
-        if (! $pane || ! $command) {
36
+        if (!$pane || !$command) {
37 37
             return false;
38 38
         }
39 39
 
40 40
         // Check if task is enabled and has work
41
-        if (! $enabled) {
41
+        if (!$enabled) {
42 42
             return $this->disablePane($pane, $taskName, 'disabled in settings');
43 43
         }
44 44
 
45
-        if (! $workAvailable) {
45
+        if (!$workAvailable) {
46 46
             return $this->disablePane($pane, $taskName, 'no work available');
47 47
         }
48 48
 
@@ -108,13 +108,13 @@  discard block
 block discarded – undo
108 108
     {
109 109
         $logsEnabled = (int) Settings::settingValue('write_logs') === 1;
110 110
 
111
-        if (! $logsEnabled) {
111
+        if (!$logsEnabled) {
112 112
             return '/dev/null';
113 113
         }
114 114
 
115 115
         $logDir = config('tmux.paths.logs', storage_path('logs/tmux'));
116 116
 
117
-        if (! is_dir($logDir)) {
117
+        if (!is_dir($logDir)) {
118 118
             mkdir($logDir, 0755, true);
119 119
         }
120 120
 
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
         $killswitch = $config['killswitch']['pp'] ?? false;
182 182
         $pane = '0.1';
183 183
 
184
-        if (! $enabled) {
184
+        if (!$enabled) {
185 185
             return $this->disablePane($pane, 'Update Binaries', 'disabled in settings');
186 186
         }
187 187
 
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
             default => null,
195 195
         };
196 196
 
197
-        if (! $artisanCommand) {
197
+        if (!$artisanCommand) {
198 198
             return false;
199 199
         }
200 200
 
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
         $ppKillswitch = $config['killswitch']['pp'] ?? false;
217 217
         $pane = '0.2';
218 218
 
219
-        if (! $enabled) {
219
+        if (!$enabled) {
220 220
             return $this->disablePane($pane, 'Backfill', 'disabled in settings');
221 221
         }
222 222
 
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
             default => null,
231 231
         };
232 232
 
233
-        if (! $artisanCommand) {
233
+        if (!$artisanCommand) {
234 234
             return false;
235 235
         }
236 236
 
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
         $enabled = (int) ($config['settings']['releases_run'] ?? 0);
259 259
         $pane = $config['pane'] ?? '0.3';
260 260
 
261
-        if (! $enabled) {
261
+        if (!$enabled) {
262 262
             return $this->disablePane($pane, 'Update Releases', 'disabled in settings');
263 263
         }
264 264
 
@@ -466,7 +466,7 @@  discard block
 block discarded – undo
466 466
      */
467 467
     protected function loadCrapState(string $file): array
468 468
     {
469
-        if (! file_exists($file)) {
469
+        if (!file_exists($file)) {
470 470
             return ['current_index' => 0, 'first_run' => true];
471 471
         }
472 472
 
@@ -482,7 +482,7 @@  discard block
 block discarded – undo
482 482
     protected function saveCrapState(string $file, array $state): void
483 483
     {
484 484
         $dir = dirname($file);
485
-        if (! is_dir($dir)) {
485
+        if (!is_dir($dir)) {
486 486
             mkdir($dir, 0755, true);
487 487
         }
488 488
 
@@ -525,7 +525,7 @@  discard block
 block discarded – undo
525 525
             || (int) ($runVar['counts']['now']['processtv'] ?? 0) > 0
526 526
             || (int) ($runVar['counts']['now']['processanime'] ?? 0) > 0;
527 527
 
528
-        if (! $hasWork) {
528
+        if (!$hasWork) {
529 529
             return $this->disablePane($pane, 'Post-process Non-Amazon', 'no movies/tv/anime to process');
530 530
         }
531 531
 
@@ -564,7 +564,7 @@  discard block
 block discarded – undo
564 564
             || (int) ($runVar['counts']['now']['processgames'] ?? 0) > 0
565 565
             || (int) ($runVar['counts']['now']['processxxx'] ?? 0) > 0;
566 566
 
567
-        if (! $hasWork) {
567
+        if (!$hasWork) {
568 568
             return $this->disablePane($pane, 'Post-process Amazon', 'no music/books/games to process');
569 569
         }
570 570
 
Please login to merge, or discard this patch.