@@ -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) |
@@ -4987,7 +4987,7 @@ discard block |
||
4987 | 4987 | |
4988 | 4988 | /** |
4989 | 4989 | * @param string $ip_address An IP address in IPv4, IPv6 or decimal notation |
4990 | - * @return binary The IP address in binary or false |
|
4990 | + * @return string The IP address in binary or false |
|
4991 | 4991 | */ |
4992 | 4992 | function inet_ptod($ip_address) |
4993 | 4993 | { |
@@ -5385,7 +5385,7 @@ discard block |
||
5385 | 5385 | * It assumes the data is already a string. |
5386 | 5386 | * @param string $data The data to print |
5387 | 5387 | * @param string $type The content type. Defaults to Json. |
5388 | - * @return void |
|
5388 | + * @return false|null |
|
5389 | 5389 | */ |
5390 | 5390 | function smf_serverResponse($data = '', $type = 'Content-Type: application/json') |
5391 | 5391 | { |
@@ -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 | { |
@@ -80,7 +80,7 @@ |
||
80 | 80 | /** |
81 | 81 | * Handles retrieving previews of news items, newsletters, signatures and warnings. |
82 | 82 | * Calls the appropriate function based on $_POST['item'] |
83 | - * @return void|bool Returns false if $_POST['item'] isn't set or isn't valid |
|
83 | + * @return false|null Returns false if $_POST['item'] isn't set or isn't valid |
|
84 | 84 | */ |
85 | 85 | function RetrievePreview() |
86 | 86 | { |
@@ -1717,7 +1717,7 @@ discard block |
||
1717 | 1717 | /** |
1718 | 1718 | * Show today's birthdays. |
1719 | 1719 | * @param string $output_method The output method. If 'echo', displays a list of users, otherwise returns an array of info about them. |
1720 | - * @return void|array Displays a list of users or returns an array of info about them depending on output_method. |
|
1720 | + * @return null|string Displays a list of users or returns an array of info about them depending on output_method. |
|
1721 | 1721 | */ |
1722 | 1722 | function ssi_todaysBirthdays($output_method = 'echo') |
1723 | 1723 | { |
@@ -1746,7 +1746,7 @@ discard block |
||
1746 | 1746 | /** |
1747 | 1747 | * Shows today's holidays. |
1748 | 1748 | * @param string $output_method The output method. If 'echo', displays a list of holidays, otherwise returns an array of info about them. |
1749 | - * @return void|array Displays a list of holidays or returns an array of info about them depending on output_method |
|
1749 | + * @return null|string Displays a list of holidays or returns an array of info about them depending on output_method |
|
1750 | 1750 | */ |
1751 | 1751 | function ssi_todaysHolidays($output_method = 'echo') |
1752 | 1752 | { |
@@ -1773,7 +1773,7 @@ discard block |
||
1773 | 1773 | |
1774 | 1774 | /** |
1775 | 1775 | * @param string $output_method The output method. If 'echo', displays a list of events, otherwise returns an array of info about them. |
1776 | - * @return void|array Displays a list of events or returns an array of info about them depending on output_method |
|
1776 | + * @return null|string Displays a list of events or returns an array of info about them depending on output_method |
|
1777 | 1777 | */ |
1778 | 1778 | function ssi_todaysEvents($output_method = 'echo') |
1779 | 1779 | { |
@@ -1807,7 +1807,7 @@ discard block |
||
1807 | 1807 | /** |
1808 | 1808 | * Shows today's calendar items (events, birthdays and holidays) |
1809 | 1809 | * @param string $output_method The output method. If 'echo', displays a list of calendar items, otherwise returns an array of info about them. |
1810 | - * @return void|array Displays a list of calendar items or returns an array of info about them depending on output_method |
|
1810 | + * @return null|string Displays a list of calendar items or returns an array of info about them depending on output_method |
|
1811 | 1811 | */ |
1812 | 1812 | function ssi_todaysCalendar($output_method = 'echo') |
1813 | 1813 | { |
@@ -2198,7 +2198,7 @@ discard block |
||
2198 | 2198 | * @param int|string $id The ID or username of a user |
2199 | 2199 | * @param string $password The password to check |
2200 | 2200 | * @param bool $is_username If true, treats $id as a username rather than a user ID |
2201 | - * @return bool Whether or not the password is correct. |
|
2201 | + * @return null|boolean Whether or not the password is correct. |
|
2202 | 2202 | */ |
2203 | 2203 | function ssi_checkPassword($id = null, $password = null, $is_username = false) |
2204 | 2204 | { |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | * |
61 | 61 | * @param string $grid_name The grid name |
62 | 62 | * @param bool $is_mini Is this a mini grid? |
63 | - * @return void|bool Returns false if the grid doesn't exist. |
|
63 | + * @return false|null Returns false if the grid doesn't exist. |
|
64 | 64 | */ |
65 | 65 | function template_show_month_grid($grid_name, $is_mini = false) |
66 | 66 | { |
@@ -312,7 +312,7 @@ discard block |
||
312 | 312 | * Shows a weekly grid |
313 | 313 | * |
314 | 314 | * @param string $grid_name The name of the grid |
315 | - * @return void|bool Returns false if the grid doesn't exist |
|
315 | + * @return false|null Returns false if the grid doesn't exist |
|
316 | 316 | */ |
317 | 317 | function template_show_week_grid($grid_name) |
318 | 318 | { |