Apply fixes from StyleCI (#680)

Co-authored-by: StyleCI Bot <bot@styleci.io>
This commit is contained in:
Yury Pikhtarev 2023-04-15 01:13:52 +09:00 committed by GitHub
commit 97719dd751
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View file

@ -153,7 +153,7 @@ class Common
$all_users = ($id === 'all');
if (!$all_users AND !$user_csv = get_id_csv($id)) {
if (!$all_users and !$user_csv = get_id_csv($id)) {
break;
}
@ -218,7 +218,7 @@ class Common
$topic_csv = [];
$prune = ($mode_or_topic_id === 'prune');
if (!$prune AND !$topic_csv = get_id_csv($mode_or_topic_id)) {
if (!$prune and !$topic_csv = get_id_csv($mode_or_topic_id)) {
return false;
}
@ -427,7 +427,7 @@ class Common
}
}
if (!$topics OR !$topic_csv = get_id_csv(array_keys($topics))) {
if (!$topics or !$topic_csv = get_id_csv(array_keys($topics))) {
return false;
}

View file

@ -31,8 +31,7 @@ class Torrent
return;
}
if (IS_MOD)
{
if (IS_MOD) {
$is_auth = auth(AUTH_MOD, $forum_id, $userdata);
if ($is_auth['auth_mod']) {
return;