Passed
Push — master ( 0b6ebf...b8d851 )
by Darko
17:09 queued 05:38
created
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/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.
app/Console/Commands/TmuxStart.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
             $this->layoutBuilder = new TmuxLayoutBuilder($this->sessionManager);
56 56
 
57 57
             // Check if tmux is installed
58
-            if (! $this->checkTmuxInstalled()) {
58
+            if (!$this->checkTmuxInstalled()) {
59 59
                 $this->error('❌ tmux is not installed');
60 60
 
61 61
                 return Command::FAILURE;
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 
64 64
             // Check if session already exists
65 65
             if ($this->sessionManager->sessionExists()) {
66
-                if (! $this->option('force')) {
66
+                if (!$this->option('force')) {
67 67
                     $this->error("❌ Session '{$sessionName}' already exists");
68 68
                     if ($this->confirm('Would you like to restart it?', false)) {
69 69
                         $this->call('tmux:stop', ['--session' => $sessionName]);
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
             $this->info("
Please login to merge, or discard this patch.
app/Console/Commands/TmuxMonitor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
             $this->tmuxOutput = new TmuxOutput;
65 65
 
66 66
             // Verify session exists
67
-            if (! $this->sessionManager->sessionExists()) {
67
+            if (!$this->sessionManager->sessionExists()) {
68 68
                 $this->error("❌ Tmux session '{$sessionName}' does not exist.");
69 69
                 $this->info("
Please login to merge, or discard this patch.
app/Console/Commands/UpdateNNTmuxGit.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -42,14 +42,14 @@
 block discarded – undo
42 42
             $this->info('
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
 
@@ -455,7 +455,7 @@  discard block
 block discarded – undo
455 455
      */
456 456
     protected function loadCrapState(string $file): array
457 457
     {
458
-        if (! file_exists($file)) {
458
+        if (!file_exists($file)) {
459 459
             return ['first_run' => true];
460 460
         }
461 461
 
@@ -471,7 +471,7 @@  discard block
 block discarded – undo
471 471
     protected function saveCrapState(string $file, array $state): void
472 472
     {
473 473
         $dir = dirname($file);
474
-        if (! is_dir($dir)) {
474
+        if (!is_dir($dir)) {
475 475
             mkdir($dir, 0755, true);
476 476
         }
477 477
 
@@ -514,7 +514,7 @@  discard block
 block discarded – undo
514 514
             || (int) ($runVar['counts']['now']['processtv'] ?? 0) > 0
515 515
             || (int) ($runVar['counts']['now']['processanime'] ?? 0) > 0;
516 516
 
517
-        if (! $hasWork) {
517
+        if (!$hasWork) {
518 518
             return $this->disablePane($pane, 'Post-process Non-Amazon', 'no movies/tv/anime to process');
519 519
         }
520 520
 
@@ -553,7 +553,7 @@  discard block
 block discarded – undo
553 553
             || (int) ($runVar['counts']['now']['processgames'] ?? 0) > 0
554 554
             || (int) ($runVar['counts']['now']['processxxx'] ?? 0) > 0;
555 555
 
556
-        if (! $hasWork) {
556
+        if (!$hasWork) {
557 557
             return $this->disablePane($pane, 'Post-process Amazon', 'no music/books/games to process');
558 558
         }
559 559
 
Please login to merge, or discard this patch.