Passed
Push — master ( e21d9f...a9d080 )
by Darko
11:59
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
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 
54 54
         // Parse fix_crap setting into an array
55 55
         $fixCrapSetting = $this->runVar['settings']['fix_crap'] ?? '';
56
-        $fixCrapTypes = ! empty($fixCrapSetting)
56
+        $fixCrapTypes = !empty($fixCrapSetting)
57 57
             ? (is_array($fixCrapSetting) ? $fixCrapSetting : explode(',', $fixCrapSetting))
58 58
             : [];
59 59
         $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
@@ -54,16 +54,16 @@  discard block
 block discarded – undo
54 54
         $enabled = $config['enabled'] ?? true;
55 55
         $workAvailable = $config['work_available'] ?? true;
56 56
 
57
-        if (! $pane || ! $command) {
57
+        if (!$pane || !$command) {
58 58
             return false;
59 59
         }
60 60
 
61 61
         // Check if task is enabled and has work
62
-        if (! $enabled) {
62
+        if (!$enabled) {
63 63
             return $this->disablePane($pane, $taskName, 'disabled in settings');
64 64
         }
65 65
 
66
-        if (! $workAvailable) {
66
+        if (!$workAvailable) {
67 67
             return $this->disablePane($pane, $taskName, 'no work available');
68 68
         }
69 69
 
@@ -129,13 +129,13 @@  discard block
 block discarded – undo
129 129
     {
130 130
         $logsEnabled = (int) Settings::settingValue('write_logs') === 1;
131 131
 
132
-        if (! $logsEnabled) {
132
+        if (!$logsEnabled) {
133 133
             return '/dev/null';
134 134
         }
135 135
 
136 136
         $logDir = config('tmux.paths.logs', storage_path('logs/tmux'));
137 137
 
138
-        if (! is_dir($logDir)) {
138
+        if (!is_dir($logDir)) {
139 139
             mkdir($logDir, 0755, true);
140 140
         }
141 141
 
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
         $killswitch = $config['killswitch']['pp'] ?? false;
203 203
         $pane = '0.1';
204 204
 
205
-        if (! $enabled) {
205
+        if (!$enabled) {
206 206
             return $this->disablePane($pane, 'Update Binaries', 'disabled in settings');
207 207
         }
208 208
 
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
             default => null,
216 216
         };
217 217
 
218
-        if (! $artisanCommand) {
218
+        if (!$artisanCommand) {
219 219
             return false;
220 220
         }
221 221
 
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
         $ppKillswitch = $config['killswitch']['pp'] ?? false;
238 238
         $pane = '0.2';
239 239
 
240
-        if (! $enabled) {
240
+        if (!$enabled) {
241 241
             return $this->disablePane($pane, 'Backfill', 'disabled in settings');
242 242
         }
243 243
 
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
             default => null,
252 252
         };
253 253
 
254
-        if (! $artisanCommand) {
254
+        if (!$artisanCommand) {
255 255
             return false;
256 256
         }
257 257
 
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
         $enabled = (int) ($config['settings']['releases_run'] ?? 0);
280 280
         $pane = $config['pane'] ?? '0.3';
281 281
 
282
-        if (! $enabled) {
282
+        if (!$enabled) {
283 283
             return $this->disablePane($pane, 'Update Releases', 'disabled in settings');
284 284
         }
285 285
 
@@ -437,7 +437,7 @@  discard block
 block discarded – undo
437 437
 
438 438
             // Trim whitespace and filter out empty values and '0'
439 439
             $types = array_map('trim', $types);
440
-            $types = array_filter($types, fn ($type) => ! empty($type) && $type !== '0');
440
+            $types = array_filter($types, fn ($type) => !empty($type) && $type !== '0');
441 441
 
442 442
             // Re-index array to ensure sequential keys
443 443
             $types = array_values($types);
@@ -483,7 +483,7 @@  discard block
 block discarded – undo
483 483
      */
484 484
     protected function loadCrapState(string $file): array
485 485
     {
486
-        if (! file_exists($file)) {
486
+        if (!file_exists($file)) {
487 487
             return ['first_run' => true];
488 488
         }
489 489
 
@@ -499,7 +499,7 @@  discard block
 block discarded – undo
499 499
     protected function saveCrapState(string $file, array $state): void
500 500
     {
501 501
         $dir = dirname($file);
502
-        if (! is_dir($dir)) {
502
+        if (!is_dir($dir)) {
503 503
             mkdir($dir, 0755, true);
504 504
         }
505 505
 
@@ -653,7 +653,7 @@  discard block
 block discarded – undo
653 653
             || (int) ($runVar['counts']['now']['processgames'] ?? 0) > 0
654 654
             || (int) ($runVar['counts']['now']['processxxx'] ?? 0) > 0;
655 655
 
656
-        if (! $hasWork) {
656
+        if (!$hasWork) {
657 657
             return $this->disablePane($pane, 'Post-process Amazon', 'no music/books/games to process');
658 658
         }
659 659
 
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/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/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/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.