@@ -151,7 +151,7 @@ |
||
| 151 | 151 | * |
| 152 | 152 | * @param string $dir A valid path |
| 153 | 153 | * |
| 154 | - * @return boolean If this was successful or not. |
|
| 154 | + * @return boolean|null If this was successful or not. |
|
| 155 | 155 | */ |
| 156 | 156 | public function setCachedir($dir = null) |
| 157 | 157 | { |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | * Start the curl object |
| 98 | 98 | * - allow for user override values |
| 99 | 99 | * |
| 100 | - * @param array $options An array of cURL options |
|
| 100 | + * @param integer[] $options An array of cURL options |
|
| 101 | 101 | * @param int $max_redirect Maximum number of redirects |
| 102 | 102 | */ |
| 103 | 103 | public function __construct($options = array(), $max_redirect = 3) |
@@ -115,8 +115,8 @@ discard block |
||
| 115 | 115 | * - calls set_options to set the curl opts array values based on the defaults and user input |
| 116 | 116 | * |
| 117 | 117 | * @param string $url the site we are going to fetch |
| 118 | - * @param array $post_data any post data as form name => value |
|
| 119 | - * @return object An instance of the curl_fetch_web_data class |
|
| 118 | + * @param string $post_data any post data as form name => value |
|
| 119 | + * @return curl_fetch_web_data An instance of the curl_fetch_web_data class |
|
| 120 | 120 | */ |
| 121 | 121 | public function get_url_data($url, $post_data = array()) |
| 122 | 122 | { |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | * |
| 141 | 141 | * @param string $url The site to fetch |
| 142 | 142 | * @param bool $redirect Whether or not this was a redirect request |
| 143 | - * @return void|bool Sets various properties of the class or returns false if the URL isn't specified |
|
| 143 | + * @return false|null Sets various properties of the class or returns false if the URL isn't specified |
|
| 144 | 144 | */ |
| 145 | 145 | private function curl_request($url, $redirect = false) |
| 146 | 146 | { |
@@ -257,7 +257,7 @@ discard block |
||
| 257 | 257 | * of elements, an array of xmlArray's is returned for use with foreach. |
| 258 | 258 | * Example use: |
| 259 | 259 | * foreach ($xml->set('html/body/p') as $p) |
| 260 | - * @param $path string The path to search for. |
|
| 260 | + * @param string $path string The path to search for. |
|
| 261 | 261 | * @return xmlArray[] An array of xmlArray objects |
| 262 | 262 | */ |
| 263 | 263 | public function set($path) |
@@ -855,7 +855,7 @@ discard block |
||
| 855 | 855 | * Changes a files atrributes (chmod) |
| 856 | 856 | * |
| 857 | 857 | * @param string $ftp_file The file to CHMOD |
| 858 | - * @param int|string $chmod The value for the CHMOD operation |
|
| 858 | + * @param integer $chmod The value for the CHMOD operation |
|
| 859 | 859 | * @return boolean Whether or not the operation was successful |
| 860 | 860 | */ |
| 861 | 861 | public function chmod($ftp_file, $chmod) |
@@ -1025,7 +1025,7 @@ discard block |
||
| 1025 | 1025 | * |
| 1026 | 1026 | * @param string $ftp_path The path to the directory |
| 1027 | 1027 | * @param bool $search Whether or not to get a recursive directory listing |
| 1028 | - * @return string|boolean The results of the command or false if unsuccessful |
|
| 1028 | + * @return false|string The results of the command or false if unsuccessful |
|
| 1029 | 1029 | */ |
| 1030 | 1030 | public function list_dir($ftp_path = '', $search = false) |
| 1031 | 1031 | { |
@@ -1070,7 +1070,7 @@ discard block |
||
| 1070 | 1070 | * |
| 1071 | 1071 | * @param string $file The name of a file |
| 1072 | 1072 | * @param string $listing A directory listing or null to generate one |
| 1073 | - * @return string|boolean The name of the file or false if it wasn't found |
|
| 1073 | + * @return string|false The name of the file or false if it wasn't found |
|
| 1074 | 1074 | */ |
| 1075 | 1075 | public function locate($file, $listing = null) |
| 1076 | 1076 | { |
@@ -56,6 +56,7 @@ discard block |
||
| 56 | 56 | * @param array $wordsSearch Search words |
| 57 | 57 | * @param array $wordsExclude Words to exclude |
| 58 | 58 | * @param bool $isExcluded Whether the specfied word should be excluded |
| 59 | + * @return void |
|
| 59 | 60 | */ |
| 60 | 61 | public function prepareIndexes($word, array &$wordsSearch, array &$wordsExclude, $isExcluded); |
| 61 | 62 | |
@@ -130,7 +131,7 @@ discard block |
||
| 130 | 131 | * @param array $excludedIndexWords Indexed words that should be excluded |
| 131 | 132 | * @param array $participants |
| 132 | 133 | * @param array $searchArray |
| 133 | - * @return mixed |
|
| 134 | + * @return integer |
|
| 134 | 135 | */ |
| 135 | 136 | public function searchQuery(array $query_params, array $searchWords, array $excludedIndexWords, array &$participants, array &$searchArray); |
| 136 | 137 | } |
@@ -382,7 +382,7 @@ |
||
| 382 | 382 | * @param array $parameters Not used? |
| 383 | 383 | * @param string $if_exists What to do if the index exists. If 'update', the definition will be updated. |
| 384 | 384 | * @param string $error |
| 385 | - * @return boolean Whether or not the operation was successful |
|
| 385 | + * @return false|null Whether or not the operation was successful |
|
| 386 | 386 | */ |
| 387 | 387 | function smf_db_add_index($table_name, $index_info, $parameters = array(), $if_exists = 'update', $error = 'fatal') |
| 388 | 388 | { |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | * |
| 174 | 174 | * @param string $post_errors A string of info about errors encountered trying to save this draft |
| 175 | 175 | * @param array $recipientList An array of data about who this PM is being sent to |
| 176 | - * @return boolean false if you can't save the draft, true if we're doing this via XML more than 5 seconds after the last save, nothing otherwise |
|
| 176 | + * @return boolean|null false if you can't save the draft, true if we're doing this via XML more than 5 seconds after the last save, nothing otherwise |
|
| 177 | 177 | */ |
| 178 | 178 | function SavePMDraft(&$post_errors, $recipientList) |
| 179 | 179 | { |
@@ -388,7 +388,7 @@ discard block |
||
| 388 | 388 | * |
| 389 | 389 | * @param int $id_draft The ID of the draft to delete |
| 390 | 390 | * @param boolean $check Whether or not to check that the draft belongs to the current user |
| 391 | - * @return boolean False if it couldn't be deleted (doesn't return anything otherwise) |
|
| 391 | + * @return false|null False if it couldn't be deleted (doesn't return anything otherwise) |
|
| 392 | 392 | */ |
| 393 | 393 | function DeleteDraft($id_draft, $check = true) |
| 394 | 394 | { |
@@ -422,7 +422,7 @@ discard block |
||
| 422 | 422 | * @param int $member_id ID of the member to show drafts for |
| 423 | 423 | * @param boolean|integer If $type is 1, this can be set to only load drafts for posts in the specific topic |
| 424 | 424 | * @param int $draft_type The type of drafts to show - 0 for post drafts, 1 for PM drafts |
| 425 | - * @return boolean False if the drafts couldn't be loaded, nothing otherwise |
|
| 425 | + * @return false|null False if the drafts couldn't be loaded, nothing otherwise |
|
| 426 | 426 | */ |
| 427 | 427 | function ShowDrafts($member_id, $topic = false, $draft_type = 0) |
| 428 | 428 | { |
@@ -540,6 +540,7 @@ |
||
| 540 | 540 | * @param string $xml_format The format to use ('atom', 'rss', 'rss2' or empty for plain XML) |
| 541 | 541 | * @param array $forceCdataKeys A list of keys on which to force cdata wrapping (used by mods, maybe) |
| 542 | 542 | * @param array $nsKeys Key-value pairs of namespace prefixes to pass to cdata_parse() (used by mods, maybe) |
| 543 | + * @param string $tag |
|
| 543 | 544 | */ |
| 544 | 545 | function dumpTags($data, $i, $tag = null, $xml_format = '', $forceCdataKeys = array(), $nsKeys = array()) |
| 545 | 546 | { |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | * @param bool $single_file If true returns the contents of the file specified by destination if it exists |
| 29 | 29 | * @param bool $overwrite Whether to overwrite existing files |
| 30 | 30 | * @param null|array $files_to_extract Specific files to extract |
| 31 | - * @return array|false An array of information about extracted files or false on failure |
|
| 31 | + * @return string An array of information about extracted files or false on failure |
|
| 32 | 32 | */ |
| 33 | 33 | function read_tgz_file($gzfilename, $destination, $single_file = false, $overwrite = false, $files_to_extract = null) |
| 34 | 34 | { |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | * @param bool $single_file Whether to only extract a single file |
| 60 | 60 | * @param bool $overwrite Whether to overwrite existing data |
| 61 | 61 | * @param null|array $files_to_extract If set, only extracts the specified files |
| 62 | - * @return array|false An array of information about the extracted files or false on failure |
|
| 62 | + * @return string An array of information about the extracted files or false on failure |
|
| 63 | 63 | */ |
| 64 | 64 | function read_tgz_data($gzfilename, $destination, $single_file = false, $overwrite = false, $files_to_extract = null) |
| 65 | 65 | { |
@@ -3261,7 +3261,7 @@ discard block |
||
| 3261 | 3261 | * https://php.net/crc32#79567 |
| 3262 | 3262 | * |
| 3263 | 3263 | * @param string $number |
| 3264 | - * @return string The crc32 |
|
| 3264 | + * @return integer The crc32 |
|
| 3265 | 3265 | */ |
| 3266 | 3266 | function smf_crc32($number) |
| 3267 | 3267 | { |
@@ -1448,7 +1448,7 @@ discard block |
||
| 1448 | 1448 | * @param resource $socket Socket to send on |
| 1449 | 1449 | * @param string $code The expected response code |
| 1450 | 1450 | * @param string $response The response from the SMTP server |
| 1451 | - * @return bool Whether it responded as such. |
|
| 1451 | + * @return string|boolean Whether it responded as such. |
|
| 1452 | 1452 | */ |
| 1453 | 1453 | function server_parse($message, $socket, $code, &$response = null) |
| 1454 | 1454 | { |
@@ -2261,7 +2261,7 @@ discard block |
||
| 2261 | 2261 | * @param array $msgs Array of message ids |
| 2262 | 2262 | * @param bool $approve Whether to approve the posts (if false, posts are unapproved) |
| 2263 | 2263 | * @param bool $notify Whether to notify users |
| 2264 | - * @return bool Whether the operation was successful |
|
| 2264 | + * @return null|boolean Whether the operation was successful |
|
| 2265 | 2265 | */ |
| 2266 | 2266 | function approvePosts($msgs, $approve = true, $notify = true) |
| 2267 | 2267 | { |
@@ -2514,7 +2514,7 @@ discard block |
||
| 2514 | 2514 | * |
| 2515 | 2515 | * @param array $topics Array of topic ids |
| 2516 | 2516 | * @param bool $approve Whether to approve the topics. If false, unapproves them instead |
| 2517 | - * @return bool Whether the operation was successful |
|
| 2517 | + * @return null|boolean Whether the operation was successful |
|
| 2518 | 2518 | */ |
| 2519 | 2519 | function approveTopics($topics, $approve = true) |
| 2520 | 2520 | { |
@@ -2904,7 +2904,7 @@ discard block |
||
| 2904 | 2904 | * |
| 2905 | 2905 | * @param resource $dict An enchant or pspell dictionary resource set up by {@link spell_init()} |
| 2906 | 2906 | * @param string $word A word to check the spelling of |
| 2907 | - * @return bool Whether or not the specified word is spelled properly |
|
| 2907 | + * @return boolean|null Whether or not the specified word is spelled properly |
|
| 2908 | 2908 | */ |
| 2909 | 2909 | function spell_check($dict, $word) |
| 2910 | 2910 | { |