From e398657b2025a4778bbe6efcf8e92f225ad964dc Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Tue, 7 Mar 2023 22:19:26 +0700 Subject: [PATCH] Fixed code-style in some files --- common.php | 6 +++--- library/includes/bbcode.php | 8 ++++---- memberlist.php | 2 +- src/Legacy/Datastore/Common.php | 2 +- src/Legacy/Sessions.php | 4 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/common.php b/common.php index b0a27f4c0..6aa626d30 100644 --- a/common.php +++ b/common.php @@ -53,8 +53,8 @@ require_once __DIR__ . '/vendor/autoload.php'; /** * Gets the value of an environment variable. Supports boolean, empty and null. * - * @param string $key - * @param mixed $default + * @param string $key + * @param mixed $default * @return mixed */ function env($key, $default = null) @@ -79,7 +79,7 @@ function env($key, $default = null) /** * Return the default value of the given value. * - * @param mixed $value + * @param mixed $value * @return mixed */ function value($value) diff --git a/library/includes/bbcode.php b/library/includes/bbcode.php index 1d5ffd85a..9641ad234 100644 --- a/library/includes/bbcode.php +++ b/library/includes/bbcode.php @@ -185,7 +185,7 @@ function generate_smilies($mode) /** * Strips away [quote] tags and their contents from the specified string * - * @param string Text to be stripped of quote tags + * @param string Text to be stripped of quote tags * * @return string */ @@ -270,9 +270,9 @@ function strip_quotes($text) /** * Strips away bbcode from a given string, leaving plain text * - * @param string Text to be stripped of bbcode tags - * @param boolean If true, strip away quote tags AND their contents - * @param boolean If true, use the fast-and-dirty method rather than the shiny and nice method + * @param string Text to be stripped of bbcode tags + * @param boolean If true, strip away quote tags AND their contents + * @param boolean If true, use the fast-and-dirty method rather than the shiny and nice method * * @return string */ diff --git a/memberlist.php b/memberlist.php index 419175e11..655c61834 100644 --- a/memberlist.php +++ b/memberlist.php @@ -201,7 +201,7 @@ if ($paginationusername) { } if ($mode != 'topten' || $bb_cfg['topics_per_page'] < 10) { $sql = "SELECT COUNT(*) AS total FROM " . BB_USERS; - $sql .= ($letter_sql) ? " WHERE $letter_sql" : " WHERE user_id NOT IN(". EXCLUDED_USERS .")"; + $sql .= ($letter_sql) ? " WHERE $letter_sql" : " WHERE user_id NOT IN(" . EXCLUDED_USERS . ")"; if (!$result = DB()->sql_query($sql)) { bb_die('Error getting total users'); } diff --git a/src/Legacy/Datastore/Common.php b/src/Legacy/Datastore/Common.php index 2dde3cbad..8e257bf78 100644 --- a/src/Legacy/Datastore/Common.php +++ b/src/Legacy/Datastore/Common.php @@ -50,7 +50,7 @@ class Common ]; /** - * @param array (item1_title, item2_title...) or single item's title + * @param array (item1_title, item2_title...) or single item's title */ public function enqueue($items) { diff --git a/src/Legacy/Sessions.php b/src/Legacy/Sessions.php index cf6334c4b..54c455f16 100644 --- a/src/Legacy/Sessions.php +++ b/src/Legacy/Sessions.php @@ -146,13 +146,13 @@ class Sessions /** * Start user session on page header - * @deprecated - * * @param string $user_ip * @param int $page_id * @param bool $req_login * * @return array + * @deprecated + * */ public static function session_pagestart($user_ip = USER_IP, $page_id = 0, $req_login = false) {