@@ -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 | { |
@@ -1445,7 +1445,7 @@ discard block |
||
1445 | 1445 | * @param resource $socket Socket to send on |
1446 | 1446 | * @param string $code The expected response code |
1447 | 1447 | * @param string $response The response from the SMTP server |
1448 | - * @return bool Whether it responded as such. |
|
1448 | + * @return string|boolean Whether it responded as such. |
|
1449 | 1449 | */ |
1450 | 1450 | function server_parse($message, $socket, $code, &$response = null) |
1451 | 1451 | { |
@@ -2259,7 +2259,7 @@ discard block |
||
2259 | 2259 | * @param array $msgs Array of message ids |
2260 | 2260 | * @param bool $approve Whether to approve the posts (if false, posts are unapproved) |
2261 | 2261 | * @param bool $notify Whether to notify users |
2262 | - * @return bool Whether the operation was successful |
|
2262 | + * @return null|boolean Whether the operation was successful |
|
2263 | 2263 | */ |
2264 | 2264 | function approvePosts($msgs, $approve = true, $notify = true) |
2265 | 2265 | { |
@@ -2512,7 +2512,7 @@ discard block |
||
2512 | 2512 | * |
2513 | 2513 | * @param array $topics Array of topic ids |
2514 | 2514 | * @param bool $approve Whether to approve the topics. If false, unapproves them instead |
2515 | - * @return bool Whether the operation was successful |
|
2515 | + * @return null|boolean Whether the operation was successful |
|
2516 | 2516 | */ |
2517 | 2517 | function approveTopics($topics, $approve = true) |
2518 | 2518 | { |
@@ -2902,7 +2902,7 @@ discard block |
||
2902 | 2902 | * |
2903 | 2903 | * @param resource $dict An enchant or pspell dictionary resource set up by {@link spell_init()} |
2904 | 2904 | * @param string $word A word to check the spelling of |
2905 | - * @return bool Whether or not the specified word is spelled properly |
|
2905 | + * @return boolean|null Whether or not the specified word is spelled properly |
|
2906 | 2906 | */ |
2907 | 2907 | function spell_check($dict, $word) |
2908 | 2908 | { |
@@ -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) |
@@ -425,7 +425,7 @@ |
||
425 | 425 | * |
426 | 426 | * This is a recursive function, it will call itself if there are subdirs inside the main directory. |
427 | 427 | * @param string $path The absolute path to the directory to be removed |
428 | - * @return bool true when success, false on error. |
|
428 | + * @return false|null true when success, false on error. |
|
429 | 429 | */ |
430 | 430 | function remove_dir($path) |
431 | 431 | { |
@@ -676,7 +676,7 @@ discard block |
||
676 | 676 | * - caches the formatting data from the setting for optimization. |
677 | 677 | * |
678 | 678 | * @param float $number A number |
679 | - * @param bool|int $override_decimal_count If set, will use the specified number of decimal places. Otherwise it's automatically determined |
|
679 | + * @param integer $override_decimal_count If set, will use the specified number of decimal places. Otherwise it's automatically determined |
|
680 | 680 | * @return string A formatted number |
681 | 681 | */ |
682 | 682 | function comma_format($number, $override_decimal_count = false) |
@@ -5092,7 +5092,7 @@ discard block |
||
5092 | 5092 | |
5093 | 5093 | /** |
5094 | 5094 | * @param string $ip_address An IP address in IPv4, IPv6 or decimal notation |
5095 | - * @return binary The IP address in binary or false |
|
5095 | + * @return string The IP address in binary or false |
|
5096 | 5096 | */ |
5097 | 5097 | function inet_ptod($ip_address) |
5098 | 5098 | { |
@@ -5490,7 +5490,7 @@ discard block |
||
5490 | 5490 | * It assumes the data is already a string. |
5491 | 5491 | * @param string $data The data to print |
5492 | 5492 | * @param string $type The content type. Defaults to Json. |
5493 | - * @return void |
|
5493 | + * @return false|null |
|
5494 | 5494 | */ |
5495 | 5495 | function smf_serverResponse($data = '', $type = 'Content-Type: application/json') |
5496 | 5496 | { |
@@ -402,7 +402,7 @@ |
||
402 | 402 | * A private function to find out the subscription details. |
403 | 403 | * |
404 | 404 | * @access private |
405 | - * @return boolean|void False on failure, otherwise just sets $_POST['item_number'] |
|
405 | + * @return false|null False on failure, otherwise just sets $_POST['item_number'] |
|
406 | 406 | */ |
407 | 407 | private function _findSubscription() |
408 | 408 | { |
@@ -21,7 +21,7 @@ |
||
21 | 21 | { |
22 | 22 | /** |
23 | 23 | * This executes the task - loads up the information, puts the email in the queue and inserts alerts as needed. |
24 | - * @return bool Always returns true |
|
24 | + * @return boolean|null Always returns true |
|
25 | 25 | */ |
26 | 26 | public function execute() |
27 | 27 | { |