@@ -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) { |
@@ -630,7 +630,7 @@ |
||
630 | 630 | * @param string $return_value |
631 | 631 | * @param array $params |
632 | 632 | * |
633 | - * @return array |
|
633 | + * @return string |
|
634 | 634 | */ |
635 | 635 | function messages_ecml_views_hook($hook, $entity_type, $return_value, $params) { |
636 | 636 | $return_value['messages/messages'] = elgg_echo('messages'); |
@@ -41,6 +41,9 @@ discard block |
||
41 | 41 | * Wes7ley |
42 | 42 | * Wesley9 |
43 | 43 | */ |
44 | +/** |
|
45 | + * @param string $name |
|
46 | + */ |
|
44 | 47 | function mm_is_valid_person_name($name) |
45 | 48 | { |
46 | 49 | $regex = "/^[^0-9]+$/"; |
@@ -57,6 +60,9 @@ discard block |
||
57 | 60 | * 532K351 |
58 | 61 | * @578(532) |
59 | 62 | */ |
63 | +/** |
|
64 | + * @param string $num |
|
65 | + */ |
|
60 | 66 | function mm_is_guid_number($num) |
61 | 67 | { |
62 | 68 | $regex = "/^[0-9]*$/"; |
@@ -110,6 +116,9 @@ discard block |
||
110 | 116 | * Tests a the start time and duration of the given day of the week. |
111 | 117 | * Also defaults the minutes to '00' if the hour is set and the minute value is null. |
112 | 118 | */ |
119 | +/** |
|
120 | + * @param string $day |
|
121 | + */ |
|
113 | 122 | function mm_validate_time($day, $input_array) |
114 | 123 | { |
115 | 124 | /*$start_hour = $input_array[$day . '_start_hour']; |
@@ -195,7 +195,7 @@ |
||
195 | 195 | * @param $type |
196 | 196 | * @param $value |
197 | 197 | * @param $params |
198 | - * @return array |
|
198 | + * @return string[] |
|
199 | 199 | * |
200 | 200 | * to run the tests: http://127.0.0.1/gcconnex/engine/tests/suite.php |
201 | 201 | * |
@@ -46,6 +46,9 @@ discard block |
||
46 | 46 | * Function to format the dropdown menu input. |
47 | 47 | * If the input is not an entity then it returns false. |
48 | 48 | */ |
49 | +/** |
|
50 | + * @param integer $input |
|
51 | + */ |
|
49 | 52 | function mo_format_input_node($input) { |
50 | 53 | if(elgg_entity_exists($input)) { |
51 | 54 | return 'MOrg:' . $input; |
@@ -145,6 +148,9 @@ discard block |
||
145 | 148 | /* |
146 | 149 | * Extracts node guid from the stored data. |
147 | 150 | */ |
151 | +/** |
|
152 | + * @return integer |
|
153 | + */ |
|
148 | 154 | function mo_extract_node_guid($node_string) { |
149 | 155 | $node_array = explode(':', $node_string); |
150 | 156 | return $node_array[1]; |