diff --git a/Blacklight/Movie.php b/Blacklight/Movie.php index eeed231ab6..c66ac6089e 100755 --- a/Blacklight/Movie.php +++ b/Blacklight/Movie.php @@ -781,7 +781,7 @@ public function fetchTMDBProperties($imdbId, $text = false) try { $tmdbLookup = Tmdb::getMoviesApi()->getMovie($lookupId, ['append_to_response' => 'credits']); - } catch (TmdbApiException | \ErrorException $error) { + } catch (TmdbApiException|\ErrorException $error) { if (Utility::isCLI()) { $this->colorCli->error($error->getMessage()); } @@ -1277,7 +1277,7 @@ public function processMovieReleases($groupID = '', $guidChar = '', $lookupIMDB } else { $movieUpdated = false; } - } catch (TmdbApiException | \ErrorException $error) { + } catch (TmdbApiException|\ErrorException $error) { $movieUpdated = false; } } diff --git a/Blacklight/processing/tv/TMDB.php b/Blacklight/processing/tv/TMDB.php index d4fe4a6600..fca4f7623f 100644 --- a/Blacklight/processing/tv/TMDB.php +++ b/Blacklight/processing/tv/TMDB.php @@ -220,7 +220,7 @@ protected function getShowInfo($cleanName) try { $response = TmdbClient::getSearchApi()->searchTv($cleanName); - } catch (TmdbApiException | \ErrorException $e) { + } catch (TmdbApiException|\ErrorException $e) { return false; } diff --git a/app/Extensions/helper/helpers.php b/app/Extensions/helper/helpers.php index 053d208f59..7256171af0 100644 --- a/app/Extensions/helper/helpers.php +++ b/app/Extensions/helper/helpers.php @@ -176,8 +176,8 @@ function getUserBrowseOrdering(): array function createGUID(): string { $data = random_bytes(16); - $data[6] = \chr(\ord($data[6]) & 0x0f | 0x40); // set version to 0100 - $data[8] = \chr(\ord($data[8]) & 0x3f | 0x80); // set bits 6-7 to 10 + $data[6] = \chr(\ord($data[6]) & 0x0F | 0x40); // set version to 0100 + $data[8] = \chr(\ord($data[8]) & 0x3F | 0x80); // set bits 6-7 to 10 return vsprintf('%s%s-%s-%s-%s-%s%s%s', str_split(sodium_bin2hex($data), 4)); }