@@ -333,6 +333,7 @@ |
||
333 | 333 | * Gets the url to authorize a user. |
334 | 334 | * |
335 | 335 | * @param string $callback The callback URL |
336 | + * @return string |
|
336 | 337 | */ |
337 | 338 | function twitter_api_get_authorize_url($callback = NULL, $login = true) { |
338 | 339 | $session = elgg_get_session(); |
@@ -164,7 +164,7 @@ |
||
164 | 164 | * @param string $type |
165 | 165 | * @param array $return_value |
166 | 166 | * @param array $params |
167 | - * @return array |
|
167 | + * @return string[] |
|
168 | 168 | */ |
169 | 169 | function twitter_api_public_pages($hook, $type, $return_value, $params) { |
170 | 170 | $return_value[] = 'twitter_api/forward'; |
@@ -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') { |
@@ -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 |