@@ -150,7 +150,7 @@ |
||
150 | 150 | * |
151 | 151 | * @param bool $local Whether we want local cookies |
152 | 152 | * @param bool $global Whether we want global cookies |
153 | - * @return array An array to set the cookie on with domain and path in it, in that order |
|
153 | + * @return string An array to set the cookie on with domain and path in it, in that order |
|
154 | 154 | */ |
155 | 155 | function url_parts($local, $global) |
156 | 156 | { |
@@ -456,7 +456,6 @@ discard block |
||
456 | 456 | |
457 | 457 | /** |
458 | 458 | * affected_rows |
459 | - * @param resource $connection |
|
460 | 459 | */ |
461 | 460 | function smf_db_affected_rows($result = null) |
462 | 461 | { |
@@ -799,7 +798,7 @@ discard block |
||
799 | 798 | * |
800 | 799 | * @param string $db_name The database name |
801 | 800 | * @param resource $db_connection The database connection |
802 | - * @return true Always returns true |
|
801 | + * @return boolean Always returns true |
|
803 | 802 | */ |
804 | 803 | function smf_db_select_db($db_name, $db_connection) |
805 | 804 | { |
@@ -170,7 +170,7 @@ |
||
170 | 170 | * |
171 | 171 | * @param string $fileName The path to the file |
172 | 172 | * @param int $preferred_format The preferred format - 0 to automatically determine, 1 for gif, 2 for jpg, 3 for png, 6 for bmp and 15 for wbmp |
173 | - * @return boolean Whether the reencoding was successful |
|
173 | + * @return false|null Whether the reencoding was successful |
|
174 | 174 | */ |
175 | 175 | function reencodeImage($fileName, $preferred_format = 0) |
176 | 176 | { |
@@ -243,6 +243,7 @@ |
||
243 | 243 | * @param null|array The groups to remove the member(s) from. If null, the specified members are stripped from all their membergroups. |
244 | 244 | * @param bool $permissionCheckDone Whether we've already checked permissions prior to calling this function |
245 | 245 | * @param bool $ignoreProtected Whether to ignore protected groups |
246 | + * @param integer $groups |
|
246 | 247 | * @return bool Whether the operation was successful |
247 | 248 | */ |
248 | 249 | function removeMembersFromGroups($members, $groups = null, $permissionCheckDone = false, $ignoreProtected = false) |
@@ -286,7 +286,7 @@ |
||
286 | 286 | /** |
287 | 287 | * Delete a menu. |
288 | 288 | * @param string $menu_id The ID of the menu to destroy or 'last' for the most recent one |
289 | - * @return bool|void False if the menu doesn't exist, nothing otherwise |
|
289 | + * @return false|null False if the menu doesn't exist, nothing otherwise |
|
290 | 290 | */ |
291 | 291 | function destroyMenu($menu_id = 'last') |
292 | 292 | { |
@@ -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 | { |
@@ -3251,7 +3251,7 @@ discard block |
||
3251 | 3251 | * http://www.php.net/crc32#79567 |
3252 | 3252 | * |
3253 | 3253 | * @param string $number |
3254 | - * @return string The crc32 |
|
3254 | + * @return integer The crc32 |
|
3255 | 3255 | */ |
3256 | 3256 | function smf_crc32($number) |
3257 | 3257 | { |
@@ -1451,7 +1451,7 @@ discard block |
||
1451 | 1451 | * @param resource $socket Socket to send on |
1452 | 1452 | * @param string $code The expected response code |
1453 | 1453 | * @param string $response The response from the SMTP server |
1454 | - * @return bool Whether it responded as such. |
|
1454 | + * @return string|boolean Whether it responded as such. |
|
1455 | 1455 | */ |
1456 | 1456 | function server_parse($message, $socket, $code, &$response = null) |
1457 | 1457 | { |
@@ -2265,7 +2265,7 @@ discard block |
||
2265 | 2265 | * @param array $msgs Array of message ids |
2266 | 2266 | * @param bool $approve Whether to approve the posts (if false, posts are unapproved) |
2267 | 2267 | * @param bool $notify Whether to notify users |
2268 | - * @return bool Whether the operation was successful |
|
2268 | + * @return null|boolean Whether the operation was successful |
|
2269 | 2269 | */ |
2270 | 2270 | function approvePosts($msgs, $approve = true, $notify = true) |
2271 | 2271 | { |
@@ -2518,7 +2518,7 @@ discard block |
||
2518 | 2518 | * |
2519 | 2519 | * @param array $topics Array of topic ids |
2520 | 2520 | * @param bool $approve Whether to approve the topics. If false, unapproves them instead |
2521 | - * @return bool Whether the operation was successful |
|
2521 | + * @return null|boolean Whether the operation was successful |
|
2522 | 2522 | */ |
2523 | 2523 | function approveTopics($topics, $approve = true) |
2524 | 2524 | { |
@@ -2908,7 +2908,7 @@ discard block |
||
2908 | 2908 | * |
2909 | 2909 | * @param resource $dict An enchant or pspell dictionary resource set up by {@link spell_init()} |
2910 | 2910 | * @param string $word A word to check the spelling of |
2911 | - * @return bool Whether or not the specified word is spelled properly |
|
2911 | + * @return boolean|null Whether or not the specified word is spelled properly |
|
2912 | 2912 | */ |
2913 | 2913 | function spell_check($dict, $word) |
2914 | 2914 | { |
@@ -566,7 +566,7 @@ discard block |
||
566 | 566 | * |
567 | 567 | * @param int $report_id The report ID is used to fire a notification about the event. |
568 | 568 | * @param array $data a formatted array of data to be inserted. Should be already properly sanitized. |
569 | - * @return bool Boolean false if no data was provided. |
|
569 | + * @return false|null Boolean false if no data was provided. |
|
570 | 570 | */ |
571 | 571 | function saveModComment($report_id, $data) |
572 | 572 | { |
@@ -632,8 +632,8 @@ discard block |
||
632 | 632 | * Saves the new information whenever a moderator comment is edited. |
633 | 633 | * |
634 | 634 | * @param int $comment_id The edited moderator comment ID. |
635 | - * @param array $data The new data to de inserted. Should be already properly sanitized. |
|
636 | - * @return bool Boolean false if no data or no comment ID was provided. |
|
635 | + * @param string $edited_comment |
|
636 | + * @return false|null Boolean false if no data or no comment ID was provided. |
|
637 | 637 | */ |
638 | 638 | function editModComment($comment_id, $edited_comment) |
639 | 639 | { |
@@ -657,7 +657,7 @@ discard block |
||
657 | 657 | * Deletes a moderator comment from the DB. |
658 | 658 | * |
659 | 659 | * @param int $comment_id The moderator comment ID used to identify which report will be deleted. |
660 | - * @return bool Boolean false if no data was provided. |
|
660 | + * @return false|null Boolean false if no data was provided. |
|
661 | 661 | */ |
662 | 662 | function deleteModComment($comment_id) |
663 | 663 | { |
@@ -24,7 +24,7 @@ |
||
24 | 24 | * Used by VerificationCode() (Register.php). |
25 | 25 | * |
26 | 26 | * @param string $word |
27 | - * @return boolean false on failure |
|
27 | + * @return null|false false on failure |
|
28 | 28 | */ |
29 | 29 | |
30 | 30 | function createWaveFile($word) |