@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | foreach ($chunks as $chunk) { |
| 93 | 93 | foreach ($chunk as $release) { |
| 94 | 94 | $searchname = $release->searchname ?? ''; |
| 95 | - $progressBar->setMessage("Processing: " . substr($searchname, 0, 50) . "..."); |
|
| 95 | + $progressBar->setMessage("Processing: ".substr($searchname, 0, 50)."..."); |
|
| 96 | 96 | |
| 97 | 97 | try { |
| 98 | 98 | // Extract clean title from searchname |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | $cleanTitle = $titleData['title']; |
| 109 | 109 | |
| 110 | 110 | // Check if we should skip (if not forcing and data exists) |
| 111 | - if (! $force && ! $missingOnly) { |
|
| 111 | + if (!$force && !$missingOnly) { |
|
| 112 | 112 | // Check if release already has complete AniList data |
| 113 | 113 | if ($release->anidbid > 0) { |
| 114 | 114 | $anidbInfo = DB::table('anidb_info') |
@@ -130,7 +130,7 @@ discard block |
||
| 130 | 130 | // Search AniList for this title |
| 131 | 131 | $searchResults = $populateAniList->searchAnime($cleanTitle, 1); |
| 132 | 132 | |
| 133 | - if (! $searchResults || empty($searchResults)) { |
|
| 133 | + if (!$searchResults || empty($searchResults)) { |
|
| 134 | 134 | // Try with spaces replaced for broader matching |
| 135 | 135 | $altTitle = preg_replace('/\s+/', ' ', $cleanTitle); |
| 136 | 136 | if ($altTitle !== $cleanTitle) { |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | } |
| 139 | 139 | } |
| 140 | 140 | |
| 141 | - if (! $searchResults || empty($searchResults)) { |
|
| 141 | + if (!$searchResults || empty($searchResults)) { |
|
| 142 | 142 | $notFound++; |
| 143 | 143 | $processed++; |
| 144 | 144 | $progressBar->advance(); |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | $anilistData = $searchResults[0]; |
| 149 | 149 | $anilistId = $anilistData['id'] ?? null; |
| 150 | 150 | |
| 151 | - if (! $anilistId) { |
|
| 151 | + if (!$anilistId) { |
|
| 152 | 152 | $notFound++; |
| 153 | 153 | $processed++; |
| 154 | 154 | $progressBar->advance(); |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | ->where('anilist_id', $anilistId) |
| 165 | 165 | ->value('anidbid'); |
| 166 | 166 | |
| 167 | - if (! $anidbid) { |
|
| 167 | + if (!$anidbid) { |
|
| 168 | 168 | // Fallback: use anilist_id as anidbid |
| 169 | 169 | $anidbid = (int) $anilistId; |
| 170 | 170 | } |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | $failed++; |
| 180 | 180 | if ($this->getOutput()->isVerbose()) { |
| 181 | 181 | $this->newLine(); |
| 182 | - $this->error("Error processing release ID {$release->id}: " . $e->getMessage()); |
|
| 182 | + $this->error("Error processing release ID {$release->id}: ".$e->getMessage()); |
|
| 183 | 183 | } |
| 184 | 184 | } |
| 185 | 185 | |