@@ -58,7 +58,7 @@ |
||
| 58 | 58 | * This function deletes unvalidated user accounts that are older than specified. |
| 59 | 59 | * |
| 60 | 60 | * @param $maxage is the oldest an unvalidated user account can be before being deleted (in sec) |
| 61 | - * @param $log is the output to the log file |
|
| 61 | + * @param resource $log is the output to the log file |
|
| 62 | 62 | */ |
| 63 | 63 | function delete_unvalidated_users($maxage, $log) { |
| 64 | 64 | $ia = elgg_set_ignore_access(TRUE); |
@@ -93,7 +93,7 @@ |
||
| 93 | 93 | * Map user records |
| 94 | 94 | * |
| 95 | 95 | * @param $data |
| 96 | - * @return boolean |
|
| 96 | + * @return boolean|null |
|
| 97 | 97 | */ |
| 98 | 98 | function mapRecords($data = null) { |
| 99 | 99 | |
@@ -202,7 +202,7 @@ |
||
| 202 | 202 | |
| 203 | 203 | /** |
| 204 | 204 | * Run an upgrade script to port plugin settings to 1.8.2 format |
| 205 | - * @return boolean |
|
| 205 | + * @return boolean|null |
|
| 206 | 206 | */ |
| 207 | 207 | function upload_users_upgrade_v1_8_2() { |
| 208 | 208 | |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | * Send email out to the address and request a confirmation. |
| 25 | 25 | * |
| 26 | 26 | * @param int $user_guid The user's GUID |
| 27 | - * @param bool $admin_requested Was it requested by admin |
|
| 27 | + * @param string|boolean $admin_requested Was it requested by admin |
|
| 28 | 28 | * @return mixed |
| 29 | 29 | */ |
| 30 | 30 | function uservalidationbyemail_request_validation($user_guid, $admin_requested = 'deprecated') { |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | * @param string $type |
| 63 | 63 | * @param bool $value |
| 64 | 64 | * @param array $params |
| 65 | - * @return bool |
|
| 65 | + * @return null|boolean |
|
| 66 | 66 | */ |
| 67 | 67 | function uservalidationbyemail_disable_new_user($hook, $type, $value, $params) { |
| 68 | 68 | $user = elgg_extract('user', $params); |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | * Checks if an account is validated |
| 156 | 156 | * |
| 157 | 157 | * @params array $credentials The username and password |
| 158 | - * @return bool |
|
| 158 | + * @return boolean|null |
|
| 159 | 159 | */ |
| 160 | 160 | function uservalidationbyemail_check_auth_attempt($credentials) { |
| 161 | 161 | |
@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | * @param string $event |
| 235 | 235 | * @param string $type |
| 236 | 236 | * @param ElggUser $user |
| 237 | - * @return bool |
|
| 237 | + * @return boolean|null |
|
| 238 | 238 | * |
| 239 | 239 | * @throws LoginException |
| 240 | 240 | */ |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | * |
| 77 | 77 | * Not currently implemented in this cache type. |
| 78 | 78 | * |
| 79 | - * @return true |
|
| 79 | + * @return boolean |
|
| 80 | 80 | */ |
| 81 | 81 | public function clear() { |
| 82 | 82 | return true; |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * @param string $username The username |
| 10 | 10 | * @param int $expire Minutes until token expires (default is 60 minutes) |
| 11 | 11 | * |
| 12 | - * @return bool |
|
| 12 | + * @return false|string |
|
| 13 | 13 | */ |
| 14 | 14 | function create_user_token($username, $expire = 60) { |
| 15 | 15 | global $CONFIG; |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | * @param string $token The Token. |
| 71 | 71 | * @param int $site_guid The ID of the site (default is current site) |
| 72 | 72 | * |
| 73 | - * @return mixed The user id attached to the token if not expired or false. |
|
| 73 | + * @return integer The user id attached to the token if not expired or false. |
|
| 74 | 74 | */ |
| 75 | 75 | function validate_user_token($token, $site_guid) { |
| 76 | 76 | global $CONFIG; |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | * |
| 11 | 11 | * @param string $method The api name that was exposed |
| 12 | 12 | * |
| 13 | - * @return true or throws an exception |
|
| 13 | + * @return boolean or throws an exception |
|
| 14 | 14 | * @throws APIException |
| 15 | 15 | * @since 1.7.0 |
| 16 | 16 | * @access private |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | * Get POST data |
| 170 | 170 | * Since this is called through a handler, we need to manually get the post data |
| 171 | 171 | * |
| 172 | - * @return POST data as string encoded as multipart/form-data |
|
| 172 | + * @return string data as string encoded as multipart/form-data |
|
| 173 | 173 | * @access private |
| 174 | 174 | */ |
| 175 | 175 | function get_post_data() { |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | * @param string $method Method name |
| 186 | 186 | * @param array $parameters List of expected parameters |
| 187 | 187 | * |
| 188 | - * @return true on success or exception |
|
| 188 | + * @return boolean on success or exception |
|
| 189 | 189 | * @throws APIException |
| 190 | 190 | * @since 1.7.0 |
| 191 | 191 | * @access private |
@@ -338,7 +338,7 @@ discard block |
||
| 338 | 338 | /** |
| 339 | 339 | * PAM: Confirm the HMAC signature |
| 340 | 340 | * |
| 341 | - * @return true if success - otherwise throws exception |
|
| 341 | + * @return boolean if success - otherwise throws exception |
|
| 342 | 342 | * |
| 343 | 343 | * @throws SecurityException |
| 344 | 344 | * @since 1.7.0 |
@@ -708,7 +708,7 @@ discard block |
||
| 708 | 708 | * If no handler is found, this returns a 404 error |
| 709 | 709 | * |
| 710 | 710 | * @param string $handler Handler name |
| 711 | - * @param array $request Request string |
|
| 711 | + * @param string $request Request string |
|
| 712 | 712 | * |
| 713 | 713 | * @return void |
| 714 | 714 | * @access private |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | /** |
| 11 | 11 | * Set a user's password |
| 12 | 12 | * |
| 13 | - * @return bool |
|
| 13 | + * @return boolean|null |
|
| 14 | 14 | * @since 1.8.0 |
| 15 | 15 | * @access private |
| 16 | 16 | */ |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | /** |
| 78 | 78 | * Set a user's display name |
| 79 | 79 | * |
| 80 | - * @return bool |
|
| 80 | + * @return null|boolean |
|
| 81 | 81 | * @since 1.8.0 |
| 82 | 82 | * @access private |
| 83 | 83 | */ |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | /** |
| 119 | 119 | * Set a user's language |
| 120 | 120 | * |
| 121 | - * @return bool |
|
| 121 | + * @return null|boolean |
|
| 122 | 122 | * @since 1.8.0 |
| 123 | 123 | * @access private |
| 124 | 124 | */ |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | /** |
| 195 | 195 | * Set a user's email address |
| 196 | 196 | * |
| 197 | - * @return bool |
|
| 197 | + * @return null|boolean |
|
| 198 | 198 | * @since 1.8.0 |
| 199 | 199 | * @access private |
| 200 | 200 | */ |
@@ -257,7 +257,7 @@ discard block |
||
| 257 | 257 | /** |
| 258 | 258 | * Set a user's default access level |
| 259 | 259 | * |
| 260 | - * @return bool |
|
| 260 | + * @return null|boolean |
|
| 261 | 261 | * @since 1.8.0 |
| 262 | 262 | * @access private |
| 263 | 263 | */ |