Passed
Push — master ( 5063d9...a1994b )
by Jeroen
22:08
created
engine/classes/Elgg/Database/Annotations.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
engine/classes/Elgg/Http/Request.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -105,6 +105,7 @@
 block discarded – undo
105 105
 
106 106
 	/**
107 107
 	 * {@inheritdoc}
108
+	 * @return string
108 109
 	 */
109 110
 	public function getClientIp() {
110 111
 		$ip = parent::getClientIp();
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
engine/classes/ElggBatch.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -174,7 +174,7 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
engine/classes/ElggData.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -285,7 +285,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
engine/classes/ElggPluginManifest.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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');
Please login to merge, or discard this patch.
engine/classes/ElggPriorityList.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
engine/lib/admin.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -806,7 +806,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
engine/lib/cache.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -214,7 +214,7 @@
 block discarded – undo
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() {
Please login to merge, or discard this patch.
engine/lib/sessions.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.