@@ -136,7 +136,7 @@ |
||
136 | 136 | * @param bool $move True to move, false to copy. |
137 | 137 | * @param string $preference to|from If file collisions, which dir has preference. |
138 | 138 | * |
139 | - * @return bool |
|
139 | + * @return false|null |
|
140 | 140 | */ |
141 | 141 | function merge_directories($from, $to, $move = false, $preference = 'to') { |
142 | 142 | if (!$entries = scandir($from)) { |
@@ -167,7 +167,7 @@ |
||
167 | 167 | * @param string $directory Directory to look in |
168 | 168 | * @param array $exceptions Array of filenames to ignore |
169 | 169 | * @param array $list Array of files to append to |
170 | - * @param mixed $extensions Array of extensions to allow, NULL for all. Use a dot: array('.php'). |
|
170 | + * @param string[] $extensions Array of extensions to allow, NULL for all. Use a dot: array('.php'). |
|
171 | 171 | * |
172 | 172 | * @return array Filenames in $directory, in the form $directory/filename. |
173 | 173 | */ |
@@ -967,6 +967,7 @@ |
||
967 | 967 | * 'list_type' List type: 'list' (default), 'gallery' |
968 | 968 | * 'list_type_toggle' Display the list type toggle? |
969 | 969 | * 'no_results' Message to display if no results (string|Closure) |
970 | + * @param integer $limit |
|
970 | 971 | * |
971 | 972 | * @return string The rendered list of entities |
972 | 973 | * @access private |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | * @param string $context The context for this widget |
33 | 33 | * @param int $access_id If not specified, it is set to the default access level |
34 | 34 | * |
35 | - * @return int|false Widget GUID or false on failure |
|
35 | + * @return integer Widget GUID or false on failure |
|
36 | 36 | * @since 1.8.0 |
37 | 37 | */ |
38 | 38 | function elgg_create_widget($owner_guid, $handler, $context, $access_id = null) { |
@@ -290,7 +290,7 @@ discard block |
||
290 | 290 | * @param string $type The type of entity being created. |
291 | 291 | * @param string $return Value |
292 | 292 | * @param mixed $params Params |
293 | - * @return true|null |
|
293 | + * @return boolean|null |
|
294 | 294 | * @access private |
295 | 295 | */ |
296 | 296 | function _elgg_default_widgets_permissions_override($hook, $type, $return, $params) { |
@@ -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) { |