Unused parameter.

This commit is contained in:
Yuriy Pikhtarev 2017-05-05 01:06:04 +03:00
commit 7289a443a9
No known key found for this signature in database
GPG key ID: 3A9B5A757B48ECC6
10 changed files with 25 additions and 25 deletions

View file

@ -35,7 +35,7 @@ $page_cfg['use_tablesorter'] = true;
$s_member_groups = $s_pending_groups = $s_member_groups_opt = $s_pending_groups_opt = '';
$select_sort_mode = $select_sort_order = '';
function generate_user_info(&$row, $date_format, $group_mod, &$from, &$posts, &$joined, &$pm, &$email, &$www, &$user_time, &$avatar)
function generate_user_info(&$row, $group_mod, &$from, &$posts, &$joined, &$pm, &$email, &$www, &$user_time, &$avatar)
{
global $lang, $images, $bb_cfg;

View file

@ -32,9 +32,9 @@
* @param int $post_id_array
* @param int $attach_id_array
* @param int $page
* @param int $user_id
* @internal param int $user_id
*/
function delete_attachment($post_id_array = 0, $attach_id_array = 0, $page = 0, $user_id = 0)
function delete_attachment($post_id_array = 0, $attach_id_array = 0, $page = 0)
{
// Generate Array, if it's not an array
if ($post_id_array === 0 && $attach_id_array === 0 && $page === 0) {

View file

@ -113,10 +113,10 @@ function get_supported_image_types($type)
* Create thumbnail
* @param $source
* @param $new_file
* @param $mimetype
* @return bool
* @internal param $mimetype
*/
function create_thumbnail($source, $new_file, $mimetype)
function create_thumbnail($source, $new_file)
{
global $attach_config, $imagick;

View file

@ -897,7 +897,7 @@ function hide_passkey($str)
return preg_replace("#\?{$bb_cfg['passkey_key']}=[a-zA-Z0-9]{" . BT_AUTH_KEY_LENGTH . "}#", "?{$bb_cfg['passkey_key']}=passkey", $str);
}
function get_parsed_post($postrow, $mode = 'full', $return_chars = 600)
function get_parsed_post($postrow)
{
global $bb_cfg;

View file

@ -35,10 +35,10 @@ class cache_common
* Returns value of variable
* @param $name
* @param string $get_miss_key_callback
* @param int $ttl
* @return array|bool
* @internal param int $ttl
*/
public function get($name, $get_miss_key_callback = '', $ttl = 604800)
public function get($name, $get_miss_key_callback = '')
{
if ($get_miss_key_callback) {
return $get_miss_key_callback($name);
@ -48,22 +48,22 @@ class cache_common
/**
* Store value of variable
* @param $name
* @param $value
* @param int $ttl
* @return bool
* @internal param $name
* @internal param $value
* @internal param int $ttl
*/
public function set($name, $value, $ttl = 604800): bool
public function set(): bool
{
return false;
}
/**
* Remove variable
* @param string $name
* @return bool
* @internal param string $name
*/
public function rm($name = ''): bool
public function rm(): bool
{
return false;
}

View file

@ -3924,11 +3924,11 @@ class utf8
* остальные символы каждого слова преобразуются в нижний регистр.
*
* @param string|null $s
* @param bool $is_other_to_lowercase остальные символы преобразуются в нижний регистр?
* @param string $spaces_re
* @return string|bool|null Returns FALSE if error occurred
* @return bool|null|string Returns FALSE if error occurred
* @internal param bool $is_other_to_lowercase остальные символы преобразуются в нижний регистр?
*/
public static function ucwords($s, $is_other_to_lowercase = true, $spaces_re = '~([\pZ\s]+)~suSX') #\pXps is POSIX space: property Z or tab, NL, VT, FF, CR
public static function ucwords($s, $spaces_re = '~([\pZ\s]+)~suSX') #\pXps is POSIX space: property Z or tab, NL, VT, FF, CR
{
if (!ReflectionTypeHint::isValid()) {
return false;

View file

@ -1363,7 +1363,7 @@ function get_userdata($u, $force_name = false, $allow_guest = false)
return $u_data;
}
function make_jumpbox($selected = 0)
function make_jumpbox()
{
global $datastore, $template;

View file

@ -79,7 +79,7 @@ function prepare_post(&$mode, &$post_data, &$error_msg, &$username, &$subject, &
//
// Post a new topic/reply or edit existing post/poll
//
function submit_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_id, &$post_id, &$topic_type, $post_username, $post_subject, $post_message, $update_post_time, $poster_rg_id, $attach_rg_sig)
function submit_post($mode, &$post_data, &$forum_id, &$topic_id, &$post_id, &$topic_type, $post_username, $post_subject, $post_message, $update_post_time, $poster_rg_id, $attach_rg_sig)
{
global $userdata, $post_info, $is_auth, $bb_cfg, $lang, $datastore;
@ -288,7 +288,7 @@ function update_post_stats($mode, $post_data, $forum_id, $topic_id, $post_id, $u
//
// Delete a post
//
function delete_post($mode, $post_data, &$message, &$meta, $forum_id, $topic_id, $post_id)
function delete_post(&$message, $forum_id, $topic_id, $post_id)
{
global $lang;
@ -301,7 +301,7 @@ function delete_post($mode, $post_data, &$message, &$meta, $forum_id, $topic_id,
//
// Handle user notification on new post
//
function user_notification($mode, &$post_data, &$topic_title, &$forum_id, &$topic_id, &$notify_user)
function user_notification($mode, &$topic_title, &$topic_id, &$notify_user)
{
global $bb_cfg, $lang, $userdata;
@ -387,7 +387,7 @@ function user_notification($mode, &$post_data, &$topic_title, &$forum_id, &$topi
}
}
function insert_post($mode, $topic_id, $forum_id = '', $old_forum_id = '', $new_topic_id = '', $new_topic_title = '', $old_topic_id = '', $message = '', $poster_id = '')
function insert_post($mode, $topic_id, $forum_id = '', $old_forum_id = '', $new_topic_id = '', $new_topic_title = '', $old_topic_id = '')
{
global $userdata, $lang;

View file

@ -29,7 +29,7 @@ if (!defined('BB_ROOT')) {
define('SMTP_INCLUDED', 1);
function server_parse($socket, $response, $line = __LINE__)
function server_parse($socket, $response)
{
$server_response = '';
while ($server_response[3] != ' ') {

View file

@ -261,9 +261,9 @@ class template
* includes file or executes code
* @param $filename
* @param $code
* @param $handle
* @internal param $handle
*/
public function execute($filename, $code, $handle)
public function execute($filename, $code)
{
$this->cur_tpl = $filename;