From 97719dd751931418e24f252178681edfc3748065 Mon Sep 17 00:00:00 2001 From: Yury Pikhtarev Date: Sat, 15 Apr 2023 01:13:52 +0900 Subject: [PATCH] Apply fixes from StyleCI (#680) Co-authored-by: StyleCI Bot --- src/Legacy/Admin/Common.php | 6 +++--- src/Legacy/Torrent.php | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Legacy/Admin/Common.php b/src/Legacy/Admin/Common.php index dbd627335..14d7d5f97 100644 --- a/src/Legacy/Admin/Common.php +++ b/src/Legacy/Admin/Common.php @@ -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; } diff --git a/src/Legacy/Torrent.php b/src/Legacy/Torrent.php index 81a05943a..f283d3f17 100644 --- a/src/Legacy/Torrent.php +++ b/src/Legacy/Torrent.php @@ -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;