@@ -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 | |
@@ -455,7 +455,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | |