@@ -33,7 +33,7 @@ |
||
33 | 33 | * |
34 | 34 | * @param int $id The id of the annotation object being retrieved. |
35 | 35 | * |
36 | - * @return \ElggAnnotation|false |
|
36 | + * @return \ElggExtender |
|
37 | 37 | */ |
38 | 38 | function get($id) { |
39 | 39 | return _elgg_get_metastring_based_object_from_id($id, 'annotation'); |
@@ -105,6 +105,7 @@ |
||
105 | 105 | |
106 | 106 | /** |
107 | 107 | * {@inheritdoc} |
108 | + * @return string |
|
108 | 109 | */ |
109 | 110 | public function getClientIp() { |
110 | 111 | $ip = parent::getClientIp(); |
@@ -2,7 +2,6 @@ |
||
2 | 2 | namespace Elgg\Http; |
3 | 3 | |
4 | 4 | use Symfony\Component\HttpFoundation\Request as SymfonyRequest; |
5 | -use Elgg\Application; |
|
6 | 5 | |
7 | 6 | /** |
8 | 7 | * Elgg HTTP request. |
@@ -174,7 +174,7 @@ |
||
174 | 174 | * @param array $options The options array to pass to the getter function. If limit is |
175 | 175 | * not set, 10 is used as the default. In most cases that is not |
176 | 176 | * what you want. |
177 | - * @param mixed $callback An optional callback function that all results will be passed |
|
177 | + * @param null|string $callback An optional callback function that all results will be passed |
|
178 | 178 | * to upon load. The callback needs to accept $result, $getter, |
179 | 179 | * $options. |
180 | 180 | * @param int $chunk_size The number of entities to pull in before requesting more. |
@@ -285,7 +285,7 @@ |
||
285 | 285 | * |
286 | 286 | * @param int $offset Offset |
287 | 287 | * |
288 | - * @return int |
|
288 | + * @return boolean |
|
289 | 289 | */ |
290 | 290 | public function offsetExists($offset) { |
291 | 291 | return array_key_exists($offset, $this->attributes); |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | /** |
143 | 143 | * Load a manifest file, XmlElement or path to manifest.xml file |
144 | 144 | * |
145 | - * @param mixed $manifest A string, XmlElement, or path of a manifest file. |
|
145 | + * @param string $manifest A string, XmlElement, or path of a manifest file. |
|
146 | 146 | * @param string $plugin_id Optional ID of the owning plugin. Used to |
147 | 147 | * fill in some values automatically. |
148 | 148 | * |
@@ -687,7 +687,7 @@ discard block |
||
687 | 687 | /** |
688 | 688 | * Should this plugin be activated when Elgg is installed |
689 | 689 | * |
690 | - * @return bool |
|
690 | + * @return boolean|null |
|
691 | 691 | */ |
692 | 692 | public function getActivateOnInstall() { |
693 | 693 | $activate = $this->parser->getAttribute('activate_on_install'); |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | /** |
232 | 232 | * Sort the elements if they haven't been sorted yet. |
233 | 233 | * |
234 | - * @return bool |
|
234 | + * @return boolean|null |
|
235 | 235 | */ |
236 | 236 | private function sortIfUnsorted() { |
237 | 237 | if (!$this->sorted) { |
@@ -262,7 +262,7 @@ discard block |
||
262 | 262 | * |
263 | 263 | * @param mixed $element The element to check for. |
264 | 264 | * @param bool $strict Use strict checking? |
265 | - * @return mixed False if the element doesn't exists, the priority if it does. |
|
265 | + * @return integer False if the element doesn't exists, the priority if it does. |
|
266 | 266 | */ |
267 | 267 | public function getPriority($element, $strict = false) { |
268 | 268 | return array_search($element, $this->elements, $strict); |
@@ -806,7 +806,7 @@ |
||
806 | 806 | * @param string $type |
807 | 807 | * @param \ElggUser $user |
808 | 808 | * |
809 | - * @return null|true |
|
809 | + * @return boolean|null |
|
810 | 810 | * @access private |
811 | 811 | */ |
812 | 812 | function _elgg_add_admin_widgets($event, $type, $user) { |
@@ -214,7 +214,7 @@ |
||
214 | 214 | * Deletes all cached views in the simplecache and sets the lastcache and |
215 | 215 | * lastupdate time to 0 for every valid viewtype. |
216 | 216 | * |
217 | - * @return bool |
|
217 | + * @return boolean|null |
|
218 | 218 | * @since 1.7.4 |
219 | 219 | */ |
220 | 220 | function elgg_invalidate_simplecache() { |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | * @param string $username The username |
131 | 131 | * @param string $password The password |
132 | 132 | * |
133 | - * @return true|string True or an error message on failure |
|
133 | + * @return string|boolean True or an error message on failure |
|
134 | 134 | * @access private |
135 | 135 | */ |
136 | 136 | function elgg_authenticate($username, $password) { |
@@ -314,7 +314,7 @@ discard block |
||
314 | 314 | * @param \ElggUser $user A valid Elgg user object |
315 | 315 | * @param boolean $persistent Should this be a persistent login? |
316 | 316 | * |
317 | - * @return true or throws exception |
|
317 | + * @return boolean or throws exception |
|
318 | 318 | * @throws LoginException |
319 | 319 | */ |
320 | 320 | function login(\ElggUser $user, $persistent = false) { |