Passed
Push — master ( 7cc9c2...b4fe24 )
by Darko
06:07
created
Blacklight/processing/tv/TVDB.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
                 }
143 143
 
144 144
                 if ((int) $videoId > 0 && (int) $tvDbId > 0) {
145
-                    if (! empty($tvdbShow['poster'])) { // Use TVDB poster if available
145
+                    if (!empty($tvdbShow['poster'])) { // Use TVDB poster if available
146 146
                         $this->getPoster($videoId);
147 147
                     } else { // Check Fanart.tv for poster
148 148
                         $poster = $this->fanart->getTVFanArt($tvDbId);
@@ -152,8 +152,8 @@  discard block
 block discarded – undo
152 152
                         }
153 153
                     }
154 154
 
155
-                    $seasonNo = (! empty($release['season']) ? preg_replace('/^S0*/i', '', $release['season']) : '');
156
-                    $episodeNo = (! empty($release['episode']) ? preg_replace('/^E0*/i', '', $release['episode']) : '');
155
+                    $seasonNo = (!empty($release['season']) ? preg_replace('/^S0*/i', '', $release['season']) : '');
156
+                    $episodeNo = (!empty($release['episode']) ? preg_replace('/^E0*/i', '', $release['episode']) : '');
157 157
 
158 158
                     if ($episodeNo === 'all') {
159 159
                         // Set the video ID and leave episode 0
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
                     }
165 165
 
166 166
                     // Download all episodes if new show to reduce API/bandwidth usage
167
-                    if (! $this->countEpsByVideoID($videoId)) {
167
+                    if (!$this->countEpsByVideoID($videoId)) {
168 168
                         $this->getEpisodeInfo($tvDbId, -1, -1, $videoId);
169 169
                     }
170 170
 
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
                     }
259 259
 
260 260
                     // Check for show aliases and try match those too
261
-                    if (! empty($show->aliases)) {
261
+                    if (!empty($show->aliases)) {
262 262
                         foreach ($show->aliases as $key => $name) {
263 263
                             $matchPercent = $this->checkMatch(strtolower($name), strtolower($name), $matchPercent);
264 264
                             if ($matchPercent > $highestMatch) {
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
                     }
270 270
                 }
271 271
             }
272
-            if (! empty($highest)) {
272
+            if (!empty($highest)) {
273 273
                 $return = $this->formatShowInfo($highest);
274 274
             }
275 275
         }
@@ -354,7 +354,7 @@  discard block
 block discarded – undo
354 354
             $poster = $this->client->series()->artworks($show->tvdb_id);
355 355
             // Grab the image with the highest score where type == 2
356 356
             $poster = collect($poster)->where('type', 2)->sortByDesc('score')->first();
357
-            $this->posterUrl = ! empty($poster->image) ? $poster->image : '';
357
+            $this->posterUrl = !empty($poster->image) ? $poster->image : '';
358 358
         } catch (ResourceNotFoundException $e) {
359 359
             $this->colorCli->climate()->error('Poster image not found on TVDB');
360 360
         }
@@ -380,7 +380,7 @@  discard block
 block discarded – undo
380 380
             'tvrage' => 0,
381 381
             'tvmaze' => 0,
382 382
             'tmdb' => 0,
383
-            'aliases' => ! empty($show->aliases) ? $show->aliases : '',
383
+            'aliases' => !empty($show->aliases) ? $show->aliases : '',
384 384
             'localzone' => "''",
385 385
         ];
386 386
     }
Please login to merge, or discard this patch.