mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 13:24:01 -07:00
Fixed code-style in some files
This commit is contained in:
parent
79cacad216
commit
e398657b20
5 changed files with 11 additions and 11 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue