Merge pull request #570 from torrentpier/fixed-code-style

Fixed code-style in some files
This commit is contained in:
Roman Kelesidis 2023-03-07 22:19:56 +07:00 committed by GitHub
commit d775648f22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 11 deletions

View file

@ -53,8 +53,8 @@ require_once __DIR__ . '/vendor/autoload.php';
/** /**
* Gets the value of an environment variable. Supports boolean, empty and null. * Gets the value of an environment variable. Supports boolean, empty and null.
* *
* @param string $key * @param string $key
* @param mixed $default * @param mixed $default
* @return mixed * @return mixed
*/ */
function env($key, $default = null) function env($key, $default = null)
@ -79,7 +79,7 @@ function env($key, $default = null)
/** /**
* Return the default value of the given value. * Return the default value of the given value.
* *
* @param mixed $value * @param mixed $value
* @return mixed * @return mixed
*/ */
function value($value) function value($value)

View file

@ -185,7 +185,7 @@ function generate_smilies($mode)
/** /**
* Strips away [quote] tags and their contents from the specified string * 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 * @return string
*/ */
@ -270,9 +270,9 @@ function strip_quotes($text)
/** /**
* Strips away bbcode from a given string, leaving plain text * Strips away bbcode from a given string, leaving plain text
* *
* @param string Text to be stripped of bbcode tags * @param string Text to be stripped of bbcode tags
* @param boolean If true, strip away quote tags AND their contents * @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 boolean If true, use the fast-and-dirty method rather than the shiny and nice method
* *
* @return string * @return string
*/ */

View file

@ -201,7 +201,7 @@ if ($paginationusername) {
} }
if ($mode != 'topten' || $bb_cfg['topics_per_page'] < 10) { if ($mode != 'topten' || $bb_cfg['topics_per_page'] < 10) {
$sql = "SELECT COUNT(*) AS total FROM " . BB_USERS; $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)) { if (!$result = DB()->sql_query($sql)) {
bb_die('Error getting total users'); bb_die('Error getting total users');
} }

View file

@ -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) public function enqueue($items)
{ {

View file

@ -146,13 +146,13 @@ class Sessions
/** /**
* Start user session on page header * Start user session on page header
* @deprecated
*
* @param string $user_ip * @param string $user_ip
* @param int $page_id * @param int $page_id
* @param bool $req_login * @param bool $req_login
* *
* @return array * @return array
* @deprecated
*
*/ */
public static function session_pagestart($user_ip = USER_IP, $page_id = 0, $req_login = false) public static function session_pagestart($user_ip = USER_IP, $page_id = 0, $req_login = false)
{ {