@@ -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) { |
@@ -524,6 +524,7 @@ |
||
| 524 | 524 | /** |
| 525 | 525 | * Loads the cache into object's properties |
| 526 | 526 | * |
| 527 | + * @param string $cache_file |
|
| 527 | 528 | * @return void |
| 528 | 529 | */ |
| 529 | 530 | protected function _loadCache($cache_file) |
@@ -117,7 +117,6 @@ |
||
| 117 | 117 | * @param int $timebefore Lower time limit |
| 118 | 118 | * @param int $timeafter Upper time limit |
| 119 | 119 | * @param int $object_id GUID of an object |
| 120 | - * @param str $ip_address The IP address. |
|
| 121 | 120 | * @return mixed |
| 122 | 121 | */ |
| 123 | 122 | function apiadmin_get_usage_log($by_key = '', $handler = '', $request = '', $method = '', $remote_address = '', |
@@ -129,8 +129,7 @@ discard block |
||
| 129 | 129 | * |
| 130 | 130 | * @param type $event |
| 131 | 131 | * @param type $type |
| 132 | - * @param ElggRelationship $object |
|
| 133 | - * @return boolean |
|
| 132 | + * @return boolean|null |
|
| 134 | 133 | */ |
| 135 | 134 | function join_group_event($event, $type, $relationship) { |
| 136 | 135 | |
@@ -192,7 +191,6 @@ discard block |
||
| 192 | 191 | * |
| 193 | 192 | * @param type $event |
| 194 | 193 | * @param type $type |
| 195 | - * @param type $object |
|
| 196 | 194 | */ |
| 197 | 195 | function leave_group_event($event, $type, $params) { |
| 198 | 196 | $guids = get_all_children_guids($params['group']); |
@@ -269,8 +269,7 @@ |
||
| 269 | 269 | * of the parent or anything weird like that |
| 270 | 270 | * |
| 271 | 271 | * @param type $user ElggUser |
| 272 | - * @param type $subgroup_guid |
|
| 273 | - * @param type $parentgroup_guid |
|
| 272 | + * @param type $subgroup |
|
| 274 | 273 | */ |
| 275 | 274 | function can_move_subgroup($subgroup, $parent, $user = NULL) { |
| 276 | 275 | if (!elgg_instanceof($user, 'user')) { |
@@ -412,6 +412,10 @@ |
||
| 412 | 412 | /* |
| 413 | 413 | * Purpose: To sort education and work experience entities by their start date.. called before cmpEndYear so that the list is ordered by both start and end dates. |
| 414 | 414 | */ |
| 415 | +/** |
|
| 416 | + * @param ElggEntity $foo |
|
| 417 | + * @param ElggEntity $bar |
|
| 418 | + */ |
|
| 415 | 419 | function cmpStartDate($foo, $bar) |
| 416 | 420 | { |
| 417 | 421 | $a = get_entity($foo); |