@@ -212,6 +212,7 @@ discard block |
||
212 | 212 | /** |
213 | 213 | * @see elgg_unregister_action() |
214 | 214 | * @access private |
215 | + * @param string $action |
|
215 | 216 | */ |
216 | 217 | public function unregister($action) { |
217 | 218 | if (isset($this->actions[$action])) { |
@@ -321,6 +322,7 @@ discard block |
||
321 | 322 | } |
322 | 323 | |
323 | 324 | /** |
325 | + * @param string $action |
|
324 | 326 | * @return bool |
325 | 327 | * @see action_gatekeeper() |
326 | 328 | * @access private |
@@ -392,6 +394,7 @@ discard block |
||
392 | 394 | /** |
393 | 395 | * @see elgg_action_exists() |
394 | 396 | * @access private |
397 | + * @param string $action |
|
395 | 398 | */ |
396 | 399 | public function exists($action) { |
397 | 400 | return (isset($this->actions[$action]) && file_exists($this->actions[$action]['file'])); |
@@ -31,6 +31,8 @@ discard block |
||
31 | 31 | * @see elgg_get_widgets() |
32 | 32 | * @access private |
33 | 33 | * @since 1.9.0 |
34 | + * @param integer $owner_guid |
|
35 | + * @param string $context |
|
34 | 36 | */ |
35 | 37 | public function getWidgets($owner_guid, $context) { |
36 | 38 | $widget_cache_key = "$context-$owner_guid"; |
@@ -73,6 +75,10 @@ discard block |
||
73 | 75 | * @see elgg_create_widget() |
74 | 76 | * @access private |
75 | 77 | * @since 1.9.0 |
78 | + * @param integer $owner_guid |
|
79 | + * @param string $handler |
|
80 | + * @param string $context |
|
81 | + * @param integer $access_id |
|
76 | 82 | */ |
77 | 83 | public function createWidget($owner_guid, $handler, $context, $access_id = null) { |
78 | 84 | if (empty($owner_guid) || empty($handler)) { |
@@ -107,6 +113,7 @@ discard block |
||
107 | 113 | * @see elgg_can_edit_widget_layout() |
108 | 114 | * @access private |
109 | 115 | * @since 1.9.0 |
116 | + * @param string $context |
|
110 | 117 | */ |
111 | 118 | public function canEditLayout($context, $user_guid = 0) { |
112 | 119 | try { |
@@ -209,7 +216,7 @@ discard block |
||
209 | 216 | * @param string $context Context to check |
210 | 217 | * @param \ElggEntity $container Optional limit widget definitions to a container |
211 | 218 | * |
212 | - * @return string|boolean |
|
219 | + * @return string|false |
|
213 | 220 | * |
214 | 221 | * @access private |
215 | 222 | * @since 2.2.0 |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | * |
252 | 252 | * @param string $location 'head' or 'footer' |
253 | 253 | * |
254 | - * @return array |
|
254 | + * @return string[] |
|
255 | 255 | * @since 1.8.0 |
256 | 256 | */ |
257 | 257 | function elgg_get_loaded_js($location = 'head') { |
@@ -302,7 +302,7 @@ discard block |
||
302 | 302 | /** |
303 | 303 | * Get the loaded CSS URLs |
304 | 304 | * |
305 | - * @return array |
|
305 | + * @return string[] |
|
306 | 306 | * @since 1.8.0 |
307 | 307 | */ |
308 | 308 | function elgg_get_loaded_css() { |
@@ -357,7 +357,7 @@ discard block |
||
357 | 357 | * @param string $type Type of file: js or css |
358 | 358 | * @param string $location Page location |
359 | 359 | * |
360 | - * @return array |
|
360 | + * @return string[] |
|
361 | 361 | * @since 1.8.0 |
362 | 362 | */ |
363 | 363 | function elgg_get_loaded_external_files($type, $location) { |
@@ -372,7 +372,7 @@ discard block |
||
372 | 372 | * @param string $directory Directory to look in |
373 | 373 | * @param array $exceptions Array of filenames to ignore |
374 | 374 | * @param array $list Array of files to append to |
375 | - * @param mixed $extensions Array of extensions to allow, null for all. Use a dot: array('.php'). |
|
375 | + * @param string[] $extensions Array of extensions to allow, null for all. Use a dot: array('.php'). |
|
376 | 376 | * |
377 | 377 | * @return array Filenames in $directory, in the form $directory/filename. |
378 | 378 | */ |
@@ -440,7 +440,7 @@ discard block |
||
440 | 440 | /** |
441 | 441 | * Display a system message on next page load. |
442 | 442 | * |
443 | - * @param string|array $message Message or messages to add |
|
443 | + * @param string $message Message or messages to add |
|
444 | 444 | * |
445 | 445 | * @return bool |
446 | 446 | */ |
@@ -637,7 +637,7 @@ discard block |
||
637 | 637 | * @param string $object_type The object type |
638 | 638 | * @param string $object The object involved in the event |
639 | 639 | * |
640 | - * @return true |
|
640 | + * @return boolean |
|
641 | 641 | * |
642 | 642 | * @see elgg_trigger_before_event() |
643 | 643 | */ |
@@ -818,7 +818,7 @@ discard block |
||
818 | 818 | * @param string $hook Hook name |
819 | 819 | * @param string $type Hook type |
820 | 820 | * |
821 | - * @return array |
|
821 | + * @return callable[] |
|
822 | 822 | * |
823 | 823 | * @since 2.0.0 |
824 | 824 | */ |
@@ -832,7 +832,7 @@ discard block |
||
832 | 832 | * @param string $event Event name |
833 | 833 | * @param string $type Object type |
834 | 834 | * |
835 | - * @return array |
|
835 | + * @return callable[] |
|
836 | 836 | * |
837 | 837 | * @since 2.0.0 |
838 | 838 | */ |
@@ -882,7 +882,7 @@ discard block |
||
882 | 882 | * A {@elgg_plugin_hook debug log} is called. If a handler returns |
883 | 883 | * false, it will stop the default logging method. |
884 | 884 | * |
885 | - * @param mixed $value The value |
|
885 | + * @param string $value The value |
|
886 | 886 | * @param bool $to_screen Display to screen? |
887 | 887 | * @return void |
888 | 888 | * @since 1.7.0 |
@@ -1222,7 +1222,7 @@ discard block |
||
1222 | 1222 | * Extract class names from an array with key "class", optionally merging into a preexisting set. |
1223 | 1223 | * |
1224 | 1224 | * @param array $array Source array |
1225 | - * @param string|string[] $existing Existing name(s) |
|
1225 | + * @param string[] $existing Existing name(s) |
|
1226 | 1226 | * @return string[] |
1227 | 1227 | * |
1228 | 1228 | * @since 2.3.0 |
@@ -304,7 +304,6 @@ |
||
304 | 304 | * Passes results, and original params to the view functions for |
305 | 305 | * search type. |
306 | 306 | * |
307 | - * @param array $results |
|
308 | 307 | * @param array $params |
309 | 308 | * @param string $view_type = list, entity or layout |
310 | 309 | * @return string |