Passed
Push — master ( 747121...cd5352 )
by Darko
11:38 queued 01:03
created
app/Console/Commands/RefreshAnimeData.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.