Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply fixes from StyleCI #1181

Merged
merged 1 commit into from
Sep 7, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Apply fixes from StyleCI
[ci skip] [skip ci]
DariusIII authored and StyleCIBot committed Sep 7, 2021
commit d6cb7dd3cf184cd3ef510d56fae5b9396e6bb9a8
4 changes: 2 additions & 2 deletions Blacklight/Movie.php
Original file line number Diff line number Diff line change
@@ -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;
}
}
2 changes: 1 addition & 1 deletion Blacklight/processing/tv/TMDB.php
Original file line number Diff line number Diff line change
@@ -220,7 +220,7 @@ protected function getShowInfo($cleanName)

try {
$response = TmdbClient::getSearchApi()->searchTv($cleanName);
} catch (TmdbApiException | \ErrorException $e) {
} catch (TmdbApiException|\ErrorException $e) {
return false;
}

4 changes: 2 additions & 2 deletions app/Extensions/helper/helpers.php
Original file line number Diff line number Diff line change
@@ -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));
}