Passed
Push — master ( 717a42...5d19db )
by Darko
11:35 queued 05:45
created
Blacklight/processing/tv/TVDB.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
                 }
130 130
 
131 131
                 if ((int) $videoId > 0 && (int) $tvDbId > 0) {
132
-                    if (! empty($tvdbShow['poster'])) { // Use TVDB poster if available
132
+                    if (!empty($tvdbShow['poster'])) { // Use TVDB poster if available
133 133
                         $this->getPoster($videoId);
134 134
                     } else { // Check Fanart.tv for poster
135 135
                         $poster = $this->fanart->getTVFanArt($tvDbId);
@@ -139,8 +139,8 @@  discard block
 block discarded – undo
139 139
                         }
140 140
                     }
141 141
 
142
-                    $seasonNo = (! empty($release['season']) ? preg_replace('/^S0*/i', '', $release['season']) : '');
143
-                    $episodeNo = (! empty($release['episode']) ? preg_replace('/^E0*/i', '', $release['episode']) : '');
142
+                    $seasonNo = (!empty($release['season']) ? preg_replace('/^S0*/i', '', $release['season']) : '');
143
+                    $episodeNo = (!empty($release['episode']) ? preg_replace('/^E0*/i', '', $release['episode']) : '');
144 144
 
145 145
                     if ($episodeNo === 'all') {
146 146
                         // Set the video ID and leave episode 0
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
                     }
152 152
 
153 153
                     // Download all episodes if new show to reduce API/bandwidth usage
154
-                    if (! $this->countEpsByVideoID($videoId)) {
154
+                    if (!$this->countEpsByVideoID($videoId)) {
155 155
                         $this->getEpisodeInfo($tvDbId, -1, -1, $videoId);
156 156
                     }
157 157
 
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
                     }
252 252
 
253 253
                     // Check for show aliases and try match those too
254
-                    if (! empty($show->aliases)) {
254
+                    if (!empty($show->aliases)) {
255 255
                         foreach ($show->aliases as $key => $name) {
256 256
                             $matchPercent = $this->checkMatch(strtolower($name), strtolower($name), $matchPercent);
257 257
                             if ($matchPercent > $highestMatch) {
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
                     }
263 263
                 }
264 264
             }
265
-            if (! empty($highest)) {
265
+            if (!empty($highest)) {
266 266
                 $return = $this->formatShowInfo($highest);
267 267
             }
268 268
         }
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
     {
299 299
         $return = $response = false;
300 300
 
301
-        if (! $this->local) {
301
+        if (!$this->local) {
302 302
             if ($videoId > 0) {
303 303
                 try {
304 304
                     $response = $this->client->series()->allEpisodes($tvDbId);
@@ -356,7 +356,7 @@  discard block
 block discarded – undo
356 356
             $poster = $this->client->series()->artworks($show->tvdb_id);
357 357
             // Grab the image with the highest score where type == 2
358 358
             $poster = collect($poster)->where('type', 2)->sortByDesc('score')->first();
359
-            $this->posterUrl = ! empty($poster->image) ? $poster->image : '';
359
+            $this->posterUrl = !empty($poster->image) ? $poster->image : '';
360 360
         } catch (ResourceNotFoundException $e) {
361 361
             $this->colorCli->climate()->error('Poster image not found on TVDB');
362 362
         } catch (UnauthorizedException $error) {
@@ -396,7 +396,7 @@  discard block
 block discarded – undo
396 396
             'tvrage' => 0,
397 397
             'tvmaze' => 0,
398 398
             'tmdb' => 0,
399
-            'aliases' => ! empty($show->aliases) ? $show->aliases : '',
399
+            'aliases' => !empty($show->aliases) ? $show->aliases : '',
400 400
             'localzone' => "''",
401 401
         ];
402 402
     }
Please login to merge, or discard this patch.