@@ -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 | { |
@@ -227,7 +227,7 @@ |
||
| 227 | 227 | * @param int|string $verify_id The verification control ID |
| 228 | 228 | * @param string $display_type What type to display. Can be 'single' to only show one verification option or 'all' to show all of them |
| 229 | 229 | * @param bool $reset Whether to reset the internal tracking counter |
| 230 | - * @return bool False if there's nothing else to show, true if $display_type is 'single', nothing otherwise |
|
| 230 | + * @return boolean|null False if there's nothing else to show, true if $display_type is 'single', nothing otherwise |
|
| 231 | 231 | */ |
| 232 | 232 | function template_control_verification($verify_id, $display_type = 'all', $reset = false) |
| 233 | 233 | { |
@@ -1101,7 +1101,7 @@ |
||
| 1101 | 1101 | /** |
| 1102 | 1102 | * CHMOD control form |
| 1103 | 1103 | * |
| 1104 | - * @return bool False if nothing to do. |
|
| 1104 | + * @return false|null False if nothing to do. |
|
| 1105 | 1105 | */ |
| 1106 | 1106 | function template_control_chmod() |
| 1107 | 1107 | { |
@@ -399,6 +399,9 @@ discard block |
||
| 399 | 399 | } |
| 400 | 400 | |
| 401 | 401 | // Used to direct the user to another location. |
| 402 | +/** |
|
| 403 | + * @param string $location |
|
| 404 | + */ |
|
| 402 | 405 | function redirectLocation($location, $addForm = true) |
| 403 | 406 | { |
| 404 | 407 | global $upgradeurl, $upcontext, $command_line; |
@@ -1572,6 +1575,9 @@ discard block |
||
| 1572 | 1575 | return addslashes(preg_replace(array('~^\.([/\\\]|$)~', '~[/]+~', '~[\\\]+~', '~[/\\\]$~'), array($install_path . '$1', '/', '\\', ''), $path)); |
| 1573 | 1576 | } |
| 1574 | 1577 | |
| 1578 | +/** |
|
| 1579 | + * @param string $filename |
|
| 1580 | + */ |
|
| 1575 | 1581 | function parse_sql($filename) |
| 1576 | 1582 | { |
| 1577 | 1583 | global $db_prefix, $db_collation, $boarddir, $boardurl, $command_line, $file_steps, $step_progress, $custom_warning; |
@@ -1606,6 +1612,10 @@ discard block |
||
| 1606 | 1612 | |
| 1607 | 1613 | // Our custom error handler - does nothing but does stop public errors from XML! |
| 1608 | 1614 | set_error_handler( |
| 1615 | + |
|
| 1616 | + /** |
|
| 1617 | + * @param string $errno |
|
| 1618 | + */ |
|
| 1609 | 1619 | function ($errno, $errstr, $errfile, $errline) use ($support_js) |
| 1610 | 1620 | { |
| 1611 | 1621 | if ($support_js) |
@@ -1820,6 +1830,9 @@ discard block |
||
| 1820 | 1830 | return true; |
| 1821 | 1831 | } |
| 1822 | 1832 | |
| 1833 | +/** |
|
| 1834 | + * @param string $string |
|
| 1835 | + */ |
|
| 1823 | 1836 | function upgrade_query($string, $unbuffered = false) |
| 1824 | 1837 | { |
| 1825 | 1838 | global $db_connection, $db_server, $db_user, $db_passwd, $db_type, $command_line, $upcontext, $upgradeurl, $modSettings; |
@@ -4516,7 +4529,7 @@ discard block |
||
| 4516 | 4529 | * @param int $setSize The amount of entries after which to update the database. |
| 4517 | 4530 | * |
| 4518 | 4531 | * newCol needs to be a varbinary(16) null able field |
| 4519 | - * @return bool |
|
| 4532 | + * @return boolean|null |
|
| 4520 | 4533 | */ |
| 4521 | 4534 | function MySQLConvertOldIp($targetTable, $oldCol, $newCol, $limit = 50000, $setSize = 100) |
| 4522 | 4535 | { |
@@ -180,7 +180,7 @@ |
||
| 180 | 180 | * |
| 181 | 181 | * @access public |
| 182 | 182 | * @param string $dir A valid path |
| 183 | - * @return boolean If this was successful or not. |
|
| 183 | + * @return boolean|null If this was successful or not. |
|
| 184 | 184 | */ |
| 185 | 185 | public function setCachedir($dir = null) |
| 186 | 186 | { |
@@ -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 | { |