@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | } |
149 | 149 | |
150 | 150 | if ((int) $videoId > 0 && (int) $tvDbId > 0) { |
151 | - if (! empty($tvdbShow['poster'])) { // Use TVDB poster if available |
|
151 | + if (!empty($tvdbShow['poster'])) { // Use TVDB poster if available |
|
152 | 152 | $this->getPoster($videoId); |
153 | 153 | } else { // Check Fanart.tv for poster |
154 | 154 | $poster = $this->fanart->getTVFanArt($tvDbId); |
@@ -158,8 +158,8 @@ discard block |
||
158 | 158 | } |
159 | 159 | } |
160 | 160 | |
161 | - $seasonNo = (! empty($release['season']) ? preg_replace('/^S0*/i', '', $release['season']) : ''); |
|
162 | - $episodeNo = (! empty($release['episode']) ? preg_replace('/^E0*/i', '', $release['episode']) : ''); |
|
161 | + $seasonNo = (!empty($release['season']) ? preg_replace('/^S0*/i', '', $release['season']) : ''); |
|
162 | + $episodeNo = (!empty($release['episode']) ? preg_replace('/^E0*/i', '', $release['episode']) : ''); |
|
163 | 163 | |
164 | 164 | if ($episodeNo === 'all') { |
165 | 165 | // Set the video ID and leave episode 0 |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | } |
171 | 171 | |
172 | 172 | // Download all episodes if new show to reduce API/bandwidth usage |
173 | - if (! $this->countEpsByVideoID($videoId)) { |
|
173 | + if (!$this->countEpsByVideoID($videoId)) { |
|
174 | 174 | $this->getEpisodeInfo($tvDbId, -1, -1, $videoId); |
175 | 175 | } |
176 | 176 | |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | } |
265 | 265 | |
266 | 266 | // Check for show aliases and try match those too |
267 | - if (! empty($show->aliases)) { |
|
267 | + if (!empty($show->aliases)) { |
|
268 | 268 | foreach ($show->aliases as $key => $name) { |
269 | 269 | $matchPercent = $this->checkMatch(strtolower($name), strtolower($name), $matchPercent); |
270 | 270 | if ($matchPercent > $highestMatch) { |
@@ -275,7 +275,7 @@ discard block |
||
275 | 275 | } |
276 | 276 | } |
277 | 277 | } |
278 | - if (! empty($highest)) { |
|
278 | + if (!empty($highest)) { |
|
279 | 279 | $return = $this->formatShowInfo($highest); |
280 | 280 | } |
281 | 281 | } |
@@ -311,7 +311,7 @@ discard block |
||
311 | 311 | { |
312 | 312 | $return = $response = false; |
313 | 313 | |
314 | - if (! $this->local) { |
|
314 | + if (!$this->local) { |
|
315 | 315 | if ($videoId > 0) { |
316 | 316 | try { |
317 | 317 | $response = $this->client->series()->allEpisodes($tvDbId); |
@@ -362,7 +362,7 @@ discard block |
||
362 | 362 | $poster = $this->client->series()->artworks($show->tvdb_id); |
363 | 363 | // Grab the image with the highest score where type == 2 |
364 | 364 | $poster = collect($poster)->where('type', 2)->sortByDesc('score')->first(); |
365 | - $this->posterUrl = ! empty($poster->image) ? $poster->image : ''; |
|
365 | + $this->posterUrl = !empty($poster->image) ? $poster->image : ''; |
|
366 | 366 | } catch (ResourceNotFoundException $e) { |
367 | 367 | $this->colorCli->climate()->error('Poster image not found on TVDB'); |
368 | 368 | } |
@@ -388,7 +388,7 @@ discard block |
||
388 | 388 | 'tvrage' => 0, |
389 | 389 | 'tvmaze' => 0, |
390 | 390 | 'tmdb' => 0, |
391 | - 'aliases' => ! empty($show->aliases) ? $show->aliases : '', |
|
391 | + 'aliases' => !empty($show->aliases) ? $show->aliases : '', |
|
392 | 392 | 'localzone' => "''", |
393 | 393 | ]; |
394 | 394 | } |