@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | * @param string $path The subdirectory path within this directory |
54 | 54 | * @param bool $recursive Find files recursively |
55 | 55 | * |
56 | - * @return Collection<File> |
|
56 | + * @return Collection\InMemory |
|
57 | 57 | * |
58 | 58 | * @throws \InvalidArgumentException |
59 | 59 | */ |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | * @param string $path The subdirectory path within this directory |
66 | 66 | * @param bool $recursive Find directories recursively |
67 | 67 | * |
68 | - * @return Collection<Directory> |
|
68 | + * @return Collection\InMemory |
|
69 | 69 | * |
70 | 70 | * @throws \InvalidArgumentException |
71 | 71 | */ |
@@ -19,7 +19,7 @@ |
||
19 | 19 | * @param string $key String identifier for the message |
20 | 20 | * @param Locale $locale Locale in which the message is written |
21 | 21 | * |
22 | - * @return ?MessageTemplate The message object or null if not found. |
|
22 | + * @return null|SprintfMessageTemplate The message object or null if not found. |
|
23 | 23 | */ |
24 | 24 | public function get($key, Locale $locale); |
25 | 25 | } |
@@ -71,6 +71,8 @@ |
||
71 | 71 | |
72 | 72 | /** |
73 | 73 | * {@inheritdoc} |
74 | + * @param string $type |
|
75 | + * @param callable $callback |
|
74 | 76 | */ |
75 | 77 | public function registerHandler($name, $type, $callback, $priority = 500) { |
76 | 78 | if (($name == 'view' || $name == 'view_vars') && $type !== 'all') { |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | * |
73 | 73 | * @param int $id The id of the metadata object being retrieved. |
74 | 74 | * |
75 | - * @return \ElggMetadata|false false if not found |
|
75 | + * @return \ElggExtender false if not found |
|
76 | 76 | */ |
77 | 77 | function get($id) { |
78 | 78 | return _elgg_get_metastring_based_object_from_id($id, 'metadata'); |
@@ -723,7 +723,7 @@ discard block |
||
723 | 723 | * |
724 | 724 | * @param int $id Metadata ID |
725 | 725 | * |
726 | - * @return mixed |
|
726 | + * @return string|false |
|
727 | 727 | */ |
728 | 728 | function getUrl($id) { |
729 | 729 | $extender = $this->get($id); |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | * |
31 | 31 | * @param int $id The id of the metadata object being retrieved. |
32 | 32 | * |
33 | - * @return \ElggMetadata|false false if not found |
|
33 | + * @return ElggExtender false if not found |
|
34 | 34 | */ |
35 | 35 | function elgg_get_metadata_from_id($id) { |
36 | 36 | return _elgg_services()->metadataTable->get($id); |
@@ -258,7 +258,7 @@ discard block |
||
258 | 258 | * |
259 | 259 | * @param array $options Options array |
260 | 260 | * |
261 | - * @return array |
|
261 | + * @return string |
|
262 | 262 | * @since 1.7.0 |
263 | 263 | */ |
264 | 264 | function elgg_list_entities_from_metadata($options) { |
@@ -322,7 +322,7 @@ discard block |
||
322 | 322 | * |
323 | 323 | * @param int $id Metadata ID |
324 | 324 | * |
325 | - * @return mixed |
|
325 | + * @return string|false |
|
326 | 326 | */ |
327 | 327 | function get_metadata_url($id) { |
328 | 328 | return _elgg_services()->metadataTable->getUrl($id); |
@@ -7,8 +7,6 @@ |
||
7 | 7 | * @subpackage DataModel.Metadata |
8 | 8 | */ |
9 | 9 | |
10 | -use Elgg\Project\Paths; |
|
11 | - |
|
12 | 10 | /** |
13 | 11 | * Convert a database row to a new \ElggMetadata |
14 | 12 | * |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | * Checks if an account is validated |
147 | 147 | * |
148 | 148 | * @params array $credentials The username and password |
149 | - * @return bool |
|
149 | + * @return boolean|null |
|
150 | 150 | */ |
151 | 151 | function uservalidationbyemail_check_auth_attempt($credentials) { |
152 | 152 | |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | * @param string $event |
231 | 231 | * @param string $type |
232 | 232 | * @param ElggUser $user |
233 | - * @return bool |
|
233 | + * @return boolean|null |
|
234 | 234 | * |
235 | 235 | * @throws LoginException |
236 | 236 | */ |
@@ -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 |
@@ -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() { |
@@ -311,7 +311,7 @@ |
||
311 | 311 | * |
312 | 312 | * @param string $unsafe_url URL from untrusted input |
313 | 313 | * |
314 | - * @return bool|string Normalized URL or false if given URL was not a path. |
|
314 | + * @return false|string Normalized URL or false if given URL was not a path. |
|
315 | 315 | * |
316 | 316 | * @since 3.0.0 |
317 | 317 | */ |