mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
Apply fixes from StyleCI (#680)
Co-authored-by: StyleCI Bot <bot@styleci.io>
This commit is contained in:
parent
20337c4b85
commit
97719dd751
2 changed files with 4 additions and 5 deletions
|
@ -153,7 +153,7 @@ class Common
|
||||||
|
|
||||||
$all_users = ($id === 'all');
|
$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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -218,7 +218,7 @@ class Common
|
||||||
$topic_csv = [];
|
$topic_csv = [];
|
||||||
$prune = ($mode_or_topic_id === 'prune');
|
$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;
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -31,8 +31,7 @@ class Torrent
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IS_MOD)
|
if (IS_MOD) {
|
||||||
{
|
|
||||||
$is_auth = auth(AUTH_MOD, $forum_id, $userdata);
|
$is_auth = auth(AUTH_MOD, $forum_id, $userdata);
|
||||||
if ($is_auth['auth_mod']) {
|
if ($is_auth['auth_mod']) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue