@@ -129,7 +129,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | } |