From 45796be163aafc8c0043b07e0c2dd90c40d2fe3c Mon Sep 17 00:00:00 2001 From: DariusIII Date: Thu, 29 Aug 2024 22:36:01 +0200 Subject: [PATCH] CS fixes --- Blacklight/Movie.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Blacklight/Movie.php b/Blacklight/Movie.php index caf8e2408..0e8c59749 100755 --- a/Blacklight/Movie.php +++ b/Blacklight/Movie.php @@ -1086,9 +1086,9 @@ class Movie // Check on IMDb first if ($movieUpdated === false) { - $imdbSearch = new TitleSearch($this->config); - foreach ($imdbSearch->search($this->currentTitle, [TitleSearch::MOVIE]) as $imdbTitle) { - try { + try { + $imdbSearch = new TitleSearch($this->config); + foreach ($imdbSearch->search($this->currentTitle, [TitleSearch::MOVIE]) as $imdbTitle) { if (! empty($imdbTitle->title())) { similar_text($imdbTitle->title(), $this->currentTitle, $percent); if ($percent >= self::MATCH_PERCENT) { @@ -1102,10 +1102,10 @@ class Movie } } } - } catch (\ErrorException $e) { - $this->colorCli->error('Error fetching data from imdb occured', true); - Log::debug($e->getMessage()); } + } catch (\ErrorException $e) { + $this->colorCli->error('Error fetching data from imdb occurred', true); + Log::debug($e->getMessage()); } }