@@ -13,9 +13,9 @@ discard block |
||
| 13 | 13 | class TvProcessor |
| 14 | 14 | { |
| 15 | 15 | // Processing modes |
| 16 | - public const MODE_PIPELINE = 'pipeline'; // Sequential processing (efficient, reduces API calls) |
|
| 16 | + public const MODE_PIPELINE = 'pipeline'; // Sequential processing (efficient, reduces API calls) |
|
| 17 | 17 | |
| 18 | - public const MODE_PARALLEL = 'parallel'; // Parallel processing (faster, more API calls) |
|
| 18 | + public const MODE_PARALLEL = 'parallel'; // Parallel processing (faster, more API calls) |
|
| 19 | 19 | |
| 20 | 20 | private bool $echooutput; |
| 21 | 21 | |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | |
| 78 | 78 | foreach ($providers as $index => $provider) { |
| 79 | 79 | // Check if there's any work remaining for this provider |
| 80 | - if (! $this->hasWorkForProvider($provider['name'], $groupID, $guidChar, $processTV)) { |
|
| 80 | + if (!$this->hasWorkForProvider($provider['name'], $groupID, $guidChar, $processTV)) { |
|
| 81 | 81 | if ($this->echooutput) { |
| 82 | 82 | $this->colorCli->primaryOver(' ['); |
| 83 | 83 | $this->colorCli->warningOver($index + 1); |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | |
| 120 | 120 | foreach ($providers as $index => $provider) { |
| 121 | 121 | // Check if there's any work remaining for this stage of the pipeline |
| 122 | - if (! $this->hasWorkForProvider($provider['name'], $groupID, $guidChar, $processTV)) { |
|
| 122 | + if (!$this->hasWorkForProvider($provider['name'], $groupID, $guidChar, $processTV)) { |
|
| 123 | 123 | if ($this->echooutput) { |
| 124 | 124 | $this->colorCli->primaryOver(' ['); |
| 125 | 125 | $this->colorCli->warningOver($index + 1); |
@@ -166,11 +166,11 @@ discard block |
||
| 166 | 166 | private function hasWorkForProvider(string $providerName, string $groupID, string $guidChar, int|string $processTV): bool |
| 167 | 167 | { |
| 168 | 168 | $statusMap = [ |
| 169 | - 'Local DB' => 0, // Process unprocessed releases |
|
| 170 | - 'TVDB' => 0, // Process unprocessed releases (runs in parallel with LocalDB conceptually) |
|
| 171 | - 'TVMaze' => -1, // Process releases not found by TVDB |
|
| 172 | - 'TMDB' => -2, // Process releases not found by TVMaze |
|
| 173 | - 'Trakt' => -3, // Process releases not found by TMDB |
|
| 169 | + 'Local DB' => 0, // Process unprocessed releases |
|
| 170 | + 'TVDB' => 0, // Process unprocessed releases (runs in parallel with LocalDB conceptually) |
|
| 171 | + 'TVMaze' => -1, // Process releases not found by TVDB |
|
| 172 | + 'TMDB' => -2, // Process releases not found by TVMaze |
|
| 173 | + 'Trakt' => -3, // Process releases not found by TMDB |
|
| 174 | 174 | ]; |
| 175 | 175 | |
| 176 | 176 | $status = $statusMap[$providerName] ?? 0; |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | */ |
| 204 | 204 | private function displayHeader(string $guidChar = ''): void |
| 205 | 205 | { |
| 206 | - if (! $this->echooutput) { |
|
| 206 | + if (!$this->echooutput) { |
|
| 207 | 207 | return; |
| 208 | 208 | } |
| 209 | 209 | |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | */ |
| 228 | 228 | private function displayHeaderParallel(string $guidChar = ''): void |
| 229 | 229 | { |
| 230 | - if (! $this->echooutput) { |
|
| 230 | + if (!$this->echooutput) { |
|
| 231 | 231 | return; |
| 232 | 232 | } |
| 233 | 233 | |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | */ |
| 252 | 252 | private function displayProviderHeader(string $providerName, int $step, int $total): void |
| 253 | 253 | { |
| 254 | - if (! $this->echooutput) { |
|
| 254 | + if (!$this->echooutput) { |
|
| 255 | 255 | return; |
| 256 | 256 | } |
| 257 | 257 | |
@@ -270,7 +270,7 @@ discard block |
||
| 270 | 270 | */ |
| 271 | 271 | private function displayProviderComplete(string $providerName, float $elapsedTime): void |
| 272 | 272 | { |
| 273 | - if (! $this->echooutput) { |
|
| 273 | + if (!$this->echooutput) { |
|
| 274 | 274 | return; |
| 275 | 275 | } |
| 276 | 276 | |
@@ -288,7 +288,7 @@ discard block |
||
| 288 | 288 | */ |
| 289 | 289 | private function displaySummary(): void |
| 290 | 290 | { |
| 291 | - if (! $this->echooutput) { |
|
| 291 | + if (!$this->echooutput) { |
|
| 292 | 292 | return; |
| 293 | 293 | } |
| 294 | 294 | |
@@ -304,7 +304,7 @@ discard block |
||
| 304 | 304 | */ |
| 305 | 305 | private function displaySummaryParallel(float $totalTime): void |
| 306 | 306 | { |
| 307 | - if (! $this->echooutput) { |
|
| 307 | + if (!$this->echooutput) { |
|
| 308 | 308 | return; |
| 309 | 309 | } |
| 310 | 310 | |