@@ -8,7 +8,7 @@ |
||
8 | 8 | * |
9 | 9 | * @param array $page page elements |
10 | 10 | * |
11 | - * @return bool |
|
11 | + * @return null|boolean |
|
12 | 12 | */ |
13 | 13 | function file_tools_page_handler($page) { |
14 | 14 | $include_file = false; |
@@ -68,6 +68,10 @@ |
||
68 | 68 | * @return [ARRAY] [<ARRAY of user entities>] |
69 | 69 | * |
70 | 70 | */ |
71 | +/** |
|
72 | + * @param string $query_operand |
|
73 | + * @param integer $limit |
|
74 | + */ |
|
71 | 75 | function skill_search($query_array, $query_operand, $limit) |
72 | 76 | { |
73 | 77 | $options = array(); |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | * Checks for invalid / external domains |
142 | 142 | * |
143 | 143 | * @param $domain <string> domain part of the user's email address |
144 | - * @return true if domain is invalid, false otherwise |
|
144 | + * @return boolean if domain is invalid, false otherwise |
|
145 | 145 | * |
146 | 146 | **/ |
147 | 147 | function checkInvalidDomain($dom) |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | * Array key is the character to remove and the associated item is what will replace it. |
196 | 196 | * |
197 | 197 | * @param $emailInput <string> users email address |
198 | - * @return always returns "" because we use the response text directly |
|
198 | + * @return string returns "" because we use the response text directly |
|
199 | 199 | * @author Matthew April <[email protected]> |
200 | 200 | */ |
201 | 201 |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | * |
195 | 195 | * @param $domain <string> domain part of the user's email address |
196 | 196 | * @param $email <string> the user's full email address |
197 | - * @return true if domain is invalid, false otherwise |
|
197 | + * @return boolean if domain is invalid, false otherwise |
|
198 | 198 | * |
199 | 199 | **/ |
200 | 200 | function checkInvalidDomain($dom, $email){ |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | * Array key is the character to remove and the associated item is what will replace it. |
252 | 252 | * |
253 | 253 | * @param $emailInput <string> users email address |
254 | - * @return always returns "" because we use the response text directly |
|
254 | + * @return string returns "" because we use the response text directly |
|
255 | 255 | * @author Matthew April <[email protected]> |
256 | 256 | */ |
257 | 257 |
@@ -446,7 +446,7 @@ |
||
446 | 446 | * @param int $group_guid the group GUID |
447 | 447 | * @param string $email the email address |
448 | 448 | * |
449 | - * @return boolean|string the invite code, or false on failure |
|
449 | + * @return string|false the invite code, or false on failure |
|
450 | 450 | */ |
451 | 451 | function group_tools_generate_email_invite_code($group_guid, $email) { |
452 | 452 | $result = false; |
@@ -685,7 +685,7 @@ |
||
685 | 685 | * @param bool $return_value true, return false to stop the action |
686 | 686 | * @param null $params passed on params |
687 | 687 | * |
688 | - * @return bool |
|
688 | + * @return boolean|null |
|
689 | 689 | */ |
690 | 690 | function group_tools_join_group_action_handler($hook, $type, $return_value, $params) { |
691 | 691 | // hacky way around a short comming of Elgg core to allow users to join a group |
@@ -939,7 +939,7 @@ discard block |
||
939 | 939 | * @param string $type |
940 | 940 | * @param string $return |
941 | 941 | * @param array $params |
942 | - * @return bool |
|
942 | + * @return false|null |
|
943 | 943 | */ |
944 | 944 | function discussion_comment_override($hook, $type, $return, $params) { |
945 | 945 | if (elgg_instanceof($params['entity'], 'object', 'groupforumtopic')) { |
@@ -1290,7 +1290,7 @@ discard block |
||
1290 | 1290 | /** |
1291 | 1291 | * Runs unit tests for groups |
1292 | 1292 | * |
1293 | - * @return array |
|
1293 | + * @return string[] |
|
1294 | 1294 | */ |
1295 | 1295 | function groups_test($hook, $type, $value, $params) { |
1296 | 1296 | global $CONFIG; |
@@ -191,7 +191,7 @@ |
||
191 | 191 | /** |
192 | 192 | * Runs unit tests for htmlawed |
193 | 193 | * |
194 | - * @return array |
|
194 | + * @return string[] |
|
195 | 195 | */ |
196 | 196 | function htmlawed_test($hook, $type, $value, $params) { |
197 | 197 | $value[] = dirname(__FILE__) . '/tests/tags.php'; |
@@ -51,8 +51,6 @@ |
||
51 | 51 | * Rewrites a view for @username mentions. |
52 | 52 | * |
53 | 53 | * @param string $hook The name of the hook |
54 | - * @param string $type The type of the hook |
|
55 | - * @param string $content The content of the page |
|
56 | 54 | * @return string |
57 | 55 | */ |
58 | 56 | function mentions_rewrite($hook, $entity_type, $returnvalue, $params) { |