@@ -33,16 +33,16 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | |
@@ -416,7 +416,7 @@ discard block |
||
| 416 | 416 | |
| 417 | 417 | // Trim whitespace and filter out empty values and '0' |
| 418 | 418 | $types = array_map('trim', $types); |
| 419 | - $types = array_filter($types, fn ($type) => ! empty($type) && $type !== '0'); |
|
| 419 | + $types = array_filter($types, fn ($type) => !empty($type) && $type !== '0'); |
|
| 420 | 420 | |
| 421 | 421 | // Re-index array to ensure sequential keys |
| 422 | 422 | $types = array_values($types); |
@@ -462,7 +462,7 @@ discard block |
||
| 462 | 462 | */ |
| 463 | 463 | protected function loadCrapState(string $file): array |
| 464 | 464 | { |
| 465 | - if (! file_exists($file)) { |
|
| 465 | + if (!file_exists($file)) { |
|
| 466 | 466 | return ['first_run' => true]; |
| 467 | 467 | } |
| 468 | 468 | |
@@ -478,7 +478,7 @@ discard block |
||
| 478 | 478 | protected function saveCrapState(string $file, array $state): void |
| 479 | 479 | { |
| 480 | 480 | $dir = dirname($file); |
| 481 | - if (! is_dir($dir)) { |
|
| 481 | + if (!is_dir($dir)) { |
|
| 482 | 482 | mkdir($dir, 0755, true); |
| 483 | 483 | } |
| 484 | 484 | |
@@ -521,7 +521,7 @@ discard block |
||
| 521 | 521 | || (int) ($runVar['counts']['now']['processtv'] ?? 0) > 0 |
| 522 | 522 | || (int) ($runVar['counts']['now']['processanime'] ?? 0) > 0; |
| 523 | 523 | |
| 524 | - if (! $hasWork) { |
|
| 524 | + if (!$hasWork) { |
|
| 525 | 525 | return $this->disablePane($pane, 'Post-process Non-Amazon', 'no movies/tv/anime to process'); |
| 526 | 526 | } |
| 527 | 527 | |
@@ -560,7 +560,7 @@ discard block |
||
| 560 | 560 | || (int) ($runVar['counts']['now']['processgames'] ?? 0) > 0 |
| 561 | 561 | || (int) ($runVar['counts']['now']['processxxx'] ?? 0) > 0; |
| 562 | 562 | |
| 563 | - if (! $hasWork) { |
|
| 563 | + if (!$hasWork) { |
|
| 564 | 564 | return $this->disablePane($pane, 'Post-process Amazon', 'no music/books/games to process'); |
| 565 | 565 | } |
| 566 | 566 | |