From 7289a443a9e8b51c1bc83a54a09257fe031d5614 Mon Sep 17 00:00:00 2001 From: Yuriy Pikhtarev Date: Fri, 5 May 2017 01:06:04 +0300 Subject: [PATCH] Unused parameter. --- group.php | 2 +- library/attach_mod/includes/functions_delete.php | 4 ++-- library/attach_mod/includes/functions_thumbs.php | 4 ++-- library/includes/bbcode.php | 2 +- library/includes/cache/common.php | 16 ++++++++-------- library/includes/classes/utf8.php | 6 +++--- library/includes/functions.php | 2 +- library/includes/functions_post.php | 8 ++++---- library/includes/smtp.php | 2 +- library/includes/template.php | 4 ++-- 10 files changed, 25 insertions(+), 25 deletions(-) diff --git a/group.php b/group.php index 0696b53ad..2990c3ec1 100644 --- a/group.php +++ b/group.php @@ -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; diff --git a/library/attach_mod/includes/functions_delete.php b/library/attach_mod/includes/functions_delete.php index 5d0e83586..fe03a9966 100644 --- a/library/attach_mod/includes/functions_delete.php +++ b/library/attach_mod/includes/functions_delete.php @@ -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) { diff --git a/library/attach_mod/includes/functions_thumbs.php b/library/attach_mod/includes/functions_thumbs.php index 4581d22b9..a9fb78512 100644 --- a/library/attach_mod/includes/functions_thumbs.php +++ b/library/attach_mod/includes/functions_thumbs.php @@ -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; diff --git a/library/includes/bbcode.php b/library/includes/bbcode.php index 2567748d9..e5e49ab14 100644 --- a/library/includes/bbcode.php +++ b/library/includes/bbcode.php @@ -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; diff --git a/library/includes/cache/common.php b/library/includes/cache/common.php index 544032df6..4d45c6c24 100644 --- a/library/includes/cache/common.php +++ b/library/includes/cache/common.php @@ -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; } diff --git a/library/includes/classes/utf8.php b/library/includes/classes/utf8.php index 439894b1d..0cb5cd0d3 100644 --- a/library/includes/classes/utf8.php +++ b/library/includes/classes/utf8.php @@ -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; diff --git a/library/includes/functions.php b/library/includes/functions.php index a5fb3549b..f04245cb4 100644 --- a/library/includes/functions.php +++ b/library/includes/functions.php @@ -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; diff --git a/library/includes/functions_post.php b/library/includes/functions_post.php index 26e75ad8c..b163f92a1 100644 --- a/library/includes/functions_post.php +++ b/library/includes/functions_post.php @@ -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; diff --git a/library/includes/smtp.php b/library/includes/smtp.php index c138bca1e..0dde1f04f 100644 --- a/library/includes/smtp.php +++ b/library/includes/smtp.php @@ -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] != ' ') { diff --git a/library/includes/template.php b/library/includes/template.php index f6db24c17..ceb134e97 100644 --- a/library/includes/template.php +++ b/library/includes/template.php @@ -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;