@@ -4070,7 +4070,7 @@ |
||
4070 | 4070 | * |
4071 | 4071 | * @param int $pmID The ID of the PM |
4072 | 4072 | * @param string $validFor Which folders this is valud for - can be 'inbox', 'outbox' or 'in_or_outbox' |
4073 | - * @return boolean Whether the PM is accessible in that folder for the current user |
|
4073 | + * @return boolean|null Whether the PM is accessible in that folder for the current user |
|
4074 | 4074 | */ |
4075 | 4075 | function isAccessiblePM($pmID, $validFor = 'in_or_outbox') |
4076 | 4076 | { |
@@ -2183,7 +2183,7 @@ discard block |
||
2183 | 2183 | * Deletes a single or a group of alerts by ID |
2184 | 2184 | * |
2185 | 2185 | * @param int|array The ID of a single alert to delete or an array containing the IDs of multiple alerts. The function will convert integers into an array for better handling. |
2186 | - * @param bool|int $memID The user ID. Used to update the user unread alerts count. |
|
2186 | + * @param integer $memID The user ID. Used to update the user unread alerts count. |
|
2187 | 2187 | * @return void|int If the $memID param is set, returns the new amount of unread alerts. |
2188 | 2188 | */ |
2189 | 2189 | function alert_delete($toDelete, $memID = false) |
@@ -2839,7 +2839,7 @@ discard block |
||
2839 | 2839 | /** |
2840 | 2840 | * Handles the "manage groups" section of the profile |
2841 | 2841 | * |
2842 | - * @return true Always returns true |
|
2842 | + * @return boolean Always returns true |
|
2843 | 2843 | */ |
2844 | 2844 | function profileLoadGroups() |
2845 | 2845 | { |
@@ -2896,7 +2896,7 @@ discard block |
||
2896 | 2896 | /** |
2897 | 2897 | * Load key signature context data. |
2898 | 2898 | * |
2899 | - * @return true Always returns true |
|
2899 | + * @return boolean Always returns true |
|
2900 | 2900 | */ |
2901 | 2901 | function profileLoadSignatureData() |
2902 | 2902 | { |
@@ -2960,7 +2960,7 @@ discard block |
||
2960 | 2960 | /** |
2961 | 2961 | * Load avatar context data. |
2962 | 2962 | * |
2963 | - * @return true Always returns true |
|
2963 | + * @return boolean Always returns true |
|
2964 | 2964 | */ |
2965 | 2965 | function profileLoadAvatarData() |
2966 | 2966 | { |
@@ -3033,7 +3033,7 @@ discard block |
||
3033 | 3033 | * Save a members group. |
3034 | 3034 | * |
3035 | 3035 | * @param int &$value The ID of the (new) primary group |
3036 | - * @return true Always returns true |
|
3036 | + * @return boolean Always returns true |
|
3037 | 3037 | */ |
3038 | 3038 | function profileSaveGroups(&$value) |
3039 | 3039 | { |
@@ -3138,7 +3138,7 @@ discard block |
||
3138 | 3138 | * @todo argh, the avatar here. Take this out of here! |
3139 | 3139 | * |
3140 | 3140 | * @param string &$value What kind of avatar we're expecting. Can be 'none', 'server_stored', 'gravatar', 'external' or 'upload' |
3141 | - * @return bool|string False if success (or if memID is empty and password authentication failed), otherwise a string indicating what error occurred |
|
3141 | + * @return false|string False if success (or if memID is empty and password authentication failed), otherwise a string indicating what error occurred |
|
3142 | 3142 | */ |
3143 | 3143 | function profileSaveAvatarData(&$value) |
3144 | 3144 | { |
@@ -2605,7 +2605,7 @@ |
||
2605 | 2605 | * @param int $start Which item to start with (for pagination purposes) |
2606 | 2606 | * @param int $items_per_page How many items to show on each page |
2607 | 2607 | * @param string $sort A string indicating how to sort the results |
2608 | - * @param int $memID The ID of the member |
|
2608 | + * @param string $memID The ID of the member |
|
2609 | 2609 | * @return array An array of information about the user's group requests |
2610 | 2610 | */ |
2611 | 2611 | function list_getGroupRequests($start, $items_per_page, $sort, $memID) |
@@ -325,7 +325,7 @@ |
||
325 | 325 | * Validates a IPv6 address. returns true if it is ipv6. |
326 | 326 | * |
327 | 327 | * @param string $ip The ip address to be validated |
328 | - * @return boolean Whether the specified IP is a valid IPv6 address |
|
328 | + * @return false|string Whether the specified IP is a valid IPv6 address |
|
329 | 329 | */ |
330 | 330 | function isValidIPv6($ip) |
331 | 331 | { |
@@ -1491,7 +1491,7 @@ |
||
1491 | 1491 | |
1492 | 1492 | /** |
1493 | 1493 | * Try to determine if the topic has already been deleted by another user. |
1494 | - * @return bool False if it can't be deleted (recycling not enabled or no recycling board set), true if we've confirmed it can be deleted. Dies with an error if it's already been deleted. |
|
1494 | + * @return boolean|null False if it can't be deleted (recycling not enabled or no recycling board set), true if we've confirmed it can be deleted. Dies with an error if it's already been deleted. |
|
1495 | 1495 | */ |
1496 | 1496 | function removeDeleteConcurrence() |
1497 | 1497 | { |
@@ -1013,7 +1013,7 @@ |
||
1013 | 1013 | * @param string $title The title of the separator |
1014 | 1014 | * @param null|string $custom_table The ID of the custom table |
1015 | 1015 | * |
1016 | - * @return void|bool Returns false if there are no tables |
|
1016 | + * @return null|false Returns false if there are no tables |
|
1017 | 1017 | */ |
1018 | 1018 | function addSeparator($title = '', $custom_table = null) |
1019 | 1019 | { |
@@ -807,7 +807,7 @@ |
||
807 | 807 | /** |
808 | 808 | * Send a group of emails from the mail queue. |
809 | 809 | * |
810 | - * @param bool|int $number The number to send each loop through or false to use the standard limits |
|
810 | + * @param integer $number The number to send each loop through or false to use the standard limits |
|
811 | 811 | * @param bool $override_limit Whether to bypass the limit |
812 | 812 | * @param bool $force_send Whether to forcibly send the messages now (useful when using cron jobs) |
813 | 813 | * @return bool Whether things were sent |
@@ -18,7 +18,7 @@ |
||
18 | 18 | |
19 | 19 | /** |
20 | 20 | * Get a list of versions that are currently installed on the server. |
21 | - * @param array $checkFor An array of what to check versions for - can contain one or more of 'gd', 'imagemagick', 'db_server', 'phpa', 'memcache', 'xcache', 'apc', 'php' or 'server' |
|
21 | + * @param string[] $checkFor An array of what to check versions for - can contain one or more of 'gd', 'imagemagick', 'db_server', 'phpa', 'memcache', 'xcache', 'apc', 'php' or 'server' |
|
22 | 22 | * @return array An array of versions (keys are same as what was in $checkFor, values are the versions) |
23 | 23 | */ |
24 | 24 | function getServerVersions($checkFor) |
@@ -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 | { |