@@ -711,7 +711,7 @@ |
||
711 | 711 | * @see get_members_of_access_collection() |
712 | 712 | * |
713 | 713 | * @param int $collection_id The collection ID |
714 | - * @return \ElggAccessCollection|false |
|
714 | + * @return string |
|
715 | 715 | */ |
716 | 716 | public function get($collection_id) { |
717 | 717 |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | /** |
79 | 79 | * Get a map of all loaded translations |
80 | 80 | * |
81 | - * @return array |
|
81 | + * @return string |
|
82 | 82 | */ |
83 | 83 | public function getLoadedTranslations() { |
84 | 84 | return $this->translations; |
@@ -478,7 +478,7 @@ discard block |
||
478 | 478 | * |
479 | 479 | * @param string $language Language |
480 | 480 | * |
481 | - * @return int |
|
481 | + * @return double |
|
482 | 482 | */ |
483 | 483 | public function getLanguageCompleteness($language) { |
484 | 484 | |
@@ -579,7 +579,7 @@ discard block |
||
579 | 579 | /** |
580 | 580 | * Returns an array of language codes. |
581 | 581 | * |
582 | - * @return array |
|
582 | + * @return string[] |
|
583 | 583 | */ |
584 | 584 | public static function getAllLanguageCodes() { |
585 | 585 | return [ |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | * |
152 | 152 | * @param string $action The action being performed |
153 | 153 | * |
154 | - * @return mixed True if valid or redirects. |
|
154 | + * @return boolean True if valid or redirects. |
|
155 | 155 | * @access private |
156 | 156 | */ |
157 | 157 | function action_gatekeeper($action) { |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | /** |
183 | 183 | * Regenerate a new site key (32 bytes: "z" to indicate format + 186-bit key in Base64 URL). |
184 | 184 | * |
185 | - * @return mixed The site secret hash |
|
185 | + * @return string The site secret hash |
|
186 | 186 | * @access private |
187 | 187 | */ |
188 | 188 | function init_site_secret() { |
@@ -453,7 +453,7 @@ discard block |
||
453 | 453 | /** |
454 | 454 | * Elgg's front controller. Handles basically all incoming URL requests. |
455 | 455 | * |
456 | - * @return bool True if Elgg will handle the request, false if the server should (PHP-CLI server) |
|
456 | + * @return boolean|null True if Elgg will handle the request, false if the server should (PHP-CLI server) |
|
457 | 457 | */ |
458 | 458 | public static function index() { |
459 | 459 | $req = Request::createFromGlobals(); |
@@ -470,7 +470,7 @@ discard block |
||
470 | 470 | /** |
471 | 471 | * Routes the request, booting core if not yet booted |
472 | 472 | * |
473 | - * @return bool False if Elgg wants the PHP CLI server to handle the request |
|
473 | + * @return boolean|null False if Elgg wants the PHP CLI server to handle the request |
|
474 | 474 | */ |
475 | 475 | public function run() { |
476 | 476 | $config = $this->services->config; |
@@ -781,7 +781,7 @@ discard block |
||
781 | 781 | * @param int $linenum The line number the error was raised at |
782 | 782 | * @param array $vars An array that points to the active symbol table where error occurred |
783 | 783 | * |
784 | - * @return true |
|
784 | + * @return boolean |
|
785 | 785 | * @throws \Exception |
786 | 786 | * @access private |
787 | 787 | */ |
@@ -74,7 +74,6 @@ |
||
74 | 74 | /** |
75 | 75 | * Handle a request for a cached view |
76 | 76 | * |
77 | - * @param array $path URL path |
|
78 | 77 | * @return Response (unprepared) |
79 | 78 | */ |
80 | 79 | public function handleRequest(Request $request) { |
@@ -129,7 +129,7 @@ |
||
129 | 129 | * |
130 | 130 | * @param string $name The name of the config value |
131 | 131 | * |
132 | - * @return mixed|null |
|
132 | + * @return string|boolean |
|
133 | 133 | */ |
134 | 134 | function get($name) { |
135 | 135 | $sql = " |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | * |
250 | 250 | * @param string $location 'head' or 'footer' |
251 | 251 | * |
252 | - * @return array |
|
252 | + * @return string[] |
|
253 | 253 | * @since 1.8.0 |
254 | 254 | */ |
255 | 255 | function elgg_get_loaded_js($location = 'head') { |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | /** |
301 | 301 | * Get the loaded CSS URLs |
302 | 302 | * |
303 | - * @return array |
|
303 | + * @return string[] |
|
304 | 304 | * @since 1.8.0 |
305 | 305 | */ |
306 | 306 | function elgg_get_loaded_css() { |
@@ -355,7 +355,7 @@ discard block |
||
355 | 355 | * @param string $type Type of file: js or css |
356 | 356 | * @param string $location Page location |
357 | 357 | * |
358 | - * @return array |
|
358 | + * @return string[] |
|
359 | 359 | * @since 1.8.0 |
360 | 360 | */ |
361 | 361 | function elgg_get_loaded_external_files($type, $location) { |
@@ -370,7 +370,7 @@ discard block |
||
370 | 370 | * @param string $directory Directory to look in |
371 | 371 | * @param array $exceptions Array of filenames to ignore |
372 | 372 | * @param array $list Array of files to append to |
373 | - * @param mixed $extensions Array of extensions to allow, null for all. Use a dot: array('.php'). |
|
373 | + * @param string[] $extensions Array of extensions to allow, null for all. Use a dot: array('.php'). |
|
374 | 374 | * |
375 | 375 | * @return array Filenames in $directory, in the form $directory/filename. |
376 | 376 | */ |
@@ -438,7 +438,7 @@ discard block |
||
438 | 438 | /** |
439 | 439 | * Display a system message on next page load. |
440 | 440 | * |
441 | - * @param string|array $message Message or messages to add |
|
441 | + * @param string $message Message or messages to add |
|
442 | 442 | * |
443 | 443 | * @return bool |
444 | 444 | */ |
@@ -635,7 +635,7 @@ discard block |
||
635 | 635 | * @param string $object_type The object type |
636 | 636 | * @param string $object The object involved in the event |
637 | 637 | * |
638 | - * @return true |
|
638 | + * @return boolean |
|
639 | 639 | * |
640 | 640 | * @see elgg_trigger_before_event |
641 | 641 | */ |
@@ -816,7 +816,7 @@ discard block |
||
816 | 816 | * @param string $hook Hook name |
817 | 817 | * @param string $type Hook type |
818 | 818 | * |
819 | - * @return array |
|
819 | + * @return callable[] |
|
820 | 820 | * |
821 | 821 | * @since 2.0.0 |
822 | 822 | */ |
@@ -830,7 +830,7 @@ discard block |
||
830 | 830 | * @param string $event Event name |
831 | 831 | * @param string $type Object type |
832 | 832 | * |
833 | - * @return array |
|
833 | + * @return callable[] |
|
834 | 834 | * |
835 | 835 | * @since 2.0.0 |
836 | 836 | */ |
@@ -880,7 +880,7 @@ discard block |
||
880 | 880 | * A {@elgg_plugin_hook debug log} is called. If a handler returns |
881 | 881 | * false, it will stop the default logging method. |
882 | 882 | * |
883 | - * @param mixed $value The value |
|
883 | + * @param string $value The value |
|
884 | 884 | * @param bool $to_screen Display to screen? |
885 | 885 | * @return void |
886 | 886 | * @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 |
@@ -1787,7 +1787,7 @@ discard block |
||
1787 | 1787 | * @param array $params empty |
1788 | 1788 | * |
1789 | 1789 | * @elgg_plugin_hook unit_tests system |
1790 | - * @return array |
|
1790 | + * @return string[] |
|
1791 | 1791 | * @access private |
1792 | 1792 | */ |
1793 | 1793 | function _elgg_api_test($hook, $type, $value, $params) { |
@@ -532,7 +532,7 @@ |
||
532 | 532 | * @param string[] $value Test files |
533 | 533 | * @param array $params Hook params |
534 | 534 | * |
535 | - * @return array |
|
535 | + * @return string[] |
|
536 | 536 | */ |
537 | 537 | function _elgg_htmlawed_test($hook, $type, $value, $params) { |
538 | 538 | $value[] = Paths::elgg() . 'engine/tests/ElggHtmLawedTest.php'; |
@@ -292,7 +292,7 @@ discard block |
||
292 | 292 | * @param bool $allow_multiple_emails Allow the same email address to be |
293 | 293 | * registered multiple times? |
294 | 294 | * |
295 | - * @return int|false The new user's GUID; false on failure |
|
295 | + * @return integer The new user's GUID; false on failure |
|
296 | 296 | * @throws RegistrationException |
297 | 297 | */ |
298 | 298 | function register_user($username, $password, $name, $email, $allow_multiple_emails = false) { |
@@ -414,7 +414,7 @@ discard block |
||
414 | 414 | /** |
415 | 415 | * Sets the last action time of the given user to right now. |
416 | 416 | * |
417 | - * @param ElggUser|int $user The user or GUID |
|
417 | + * @param ElggUser $user The user or GUID |
|
418 | 418 | * @return void |
419 | 419 | */ |
420 | 420 | function set_last_action($user) { |
@@ -695,7 +695,7 @@ discard block |
||
695 | 695 | * /avatar/edit/<username> |
696 | 696 | * |
697 | 697 | * @param array $page |
698 | - * @return bool |
|
698 | + * @return boolean|null |
|
699 | 699 | * @access private |
700 | 700 | */ |
701 | 701 | function elgg_avatar_page_handler($page) { |