Passed
Push — master ( 44a2e5...c0ec87 )
by
unknown
08:57
created
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/ElggDiskFilestore.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 	 * @param resource $f    File pointer resource
108 108
 	 * @param mixed    $data The data to write.
109 109
 	 *
110
-	 * @return bool
110
+	 * @return integer
111 111
 	 */
112 112
 	public function write($f, $data) {
113 113
 		return fwrite($f, $data);
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 	 * @param int      $length The number of bytes to read
121 121
 	 * @param int      $offset The number of bytes to start after
122 122
 	 *
123
-	 * @return mixed Contents of file or false on fail.
123
+	 * @return string Contents of file or false on fail.
124 124
 	 */
125 125
 	public function read($f, $length, $offset = 0) {
126 126
 		if ($offset) {
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
 	 * @param resource $f        File resource
164 164
 	 * @param int      $position Position in bytes
165 165
 	 *
166
-	 * @return bool
166
+	 * @return integer
167 167
 	 */
168 168
 	public function seek($f, $position) {
169 169
 		return fseek($f, $position);
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
 	 * @param string $dirroot The full path of the directory to create
283 283
 	 *
284 284
 	 * @throws IOException
285
-	 * @return true
285
+	 * @return boolean
286 286
 	 * @deprecated 1.8 Use \ElggDiskFilestore::makeDirectoryRoot()
287 287
 	 */
288 288
 	protected function make_directory_root($dirroot) {
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
 	 * @param string $dirroot The full path of the directory to create
299 299
 	 *
300 300
 	 * @throws IOException
301
-	 * @return true
301
+	 * @return boolean
302 302
 	 */
303 303
 	protected function makeDirectoryRoot($dirroot) {
304 304
 		if (!file_exists($dirroot)) {
Please login to merge, or discard this patch.
engine/classes/ElggEntity.php 1 patch
Doc Comments   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -462,7 +462,7 @@  discard block
 block discarded – undo
462 462
 	 * @warning Calling this with no $name will clear all metadata on the entity.
463 463
 	 *
464 464
 	 * @param null|string $name The name of the metadata to remove.
465
-	 * @return bool
465
+	 * @return boolean|null
466 466
 	 * @since 1.8
467 467
 	 */
468 468
 	public function deleteMetadata($name = null) {
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
 	 * If you pass a name, only metadata matching that name will be deleted.
488 488
 	 *
489 489
 	 * @param null|string $name The name of metadata to delete.
490
-	 * @return bool
490
+	 * @return boolean|null
491 491
 	 * @since 1.8
492 492
 	 */
493 493
 	public function deleteOwnedMetadata($name = null) {
@@ -513,7 +513,7 @@  discard block
 block discarded – undo
513 513
 	 * @warning Calling this with no or empty arguments will clear all metadata on the entity.
514 514
 	 *
515 515
 	 * @param string $name The name of the metadata to clear
516
-	 * @return mixed bool
516
+	 * @return boolean|null bool
517 517
 	 * @deprecated 1.8 Use deleteMetadata()
518 518
 	 */
519 519
 	public function clearMetadata($name = '') {
@@ -525,7 +525,7 @@  discard block
 block discarded – undo
525 525
 	 * Disables metadata for this entity, optionally based on name.
526 526
 	 *
527 527
 	 * @param string $name An options name of metadata to disable.
528
-	 * @return bool
528
+	 * @return boolean|null
529 529
 	 * @since 1.8
530 530
 	 */
531 531
 	public function disableMetadata($name = '') {
@@ -546,7 +546,7 @@  discard block
 block discarded – undo
546 546
 	 * @warning Before calling this, you must use {@link access_show_hidden_entities()}
547 547
 	 *
548 548
 	 * @param string $name An options name of metadata to enable.
549
-	 * @return bool
549
+	 * @return boolean|null
550 550
 	 * @since 1.8
551 551
 	 */
552 552
 	public function enableMetadata($name = '') {
@@ -714,7 +714,7 @@  discard block
 block discarded – undo
714 714
 	 * @warning Calling this with no or empty arguments will clear all annotations on the entity.
715 715
 	 *
716 716
 	 * @param null|string $name The annotations name to remove.
717
-	 * @return bool
717
+	 * @return boolean|null
718 718
 	 * @since 1.8
719 719
 	 */
720 720
 	public function deleteAnnotations($name = null) {
@@ -734,7 +734,7 @@  discard block
 block discarded – undo
734 734
 	 * If you pass a name, only annotations matching that name will be deleted.
735 735
 	 *
736 736
 	 * @param null|string $name The name of annotations to delete.
737
-	 * @return bool
737
+	 * @return boolean|null
738 738
 	 * @since 1.8
739 739
 	 */
740 740
 	public function deleteOwnedAnnotations($name = null) {
@@ -758,7 +758,7 @@  discard block
 block discarded – undo
758 758
 	 * Disables annotations for this entity, optionally based on name.
759 759
 	 *
760 760
 	 * @param string $name An options name of annotations to disable.
761
-	 * @return bool
761
+	 * @return boolean|null
762 762
 	 * @since 1.8
763 763
 	 */
764 764
 	public function disableAnnotations($name = '') {
@@ -779,7 +779,7 @@  discard block
 block discarded – undo
779 779
 	 * @warning Before calling this, you must use {@link access_show_hidden_entities()}
780 780
 	 *
781 781
 	 * @param string $name An options name of annotations to enable.
782
-	 * @return bool
782
+	 * @return boolean|null
783 783
 	 * @since 1.8
784 784
 	 */
785 785
 	public function enableAnnotations($name = '') {
@@ -896,7 +896,7 @@  discard block
 block discarded – undo
896 896
 	 * all annotations on the entity.
897 897
 	 *
898 898
 	 * @param string $name Annotation name
899
-	 * @return bool
899
+	 * @return boolean|null
900 900
 	 * @deprecated 1.8 Use ->deleteAnnotations()
901 901
 	 */
902 902
 	public function clearAnnotations($name = "") {
@@ -1309,7 +1309,7 @@  discard block
 block discarded – undo
1309 1309
 	 *
1310 1310
 	 * @param int $container_guid The ID of the container.
1311 1311
 	 *
1312
-	 * @return bool
1312
+	 * @return integer
1313 1313
 	 */
1314 1314
 	public function setContainerGUID($container_guid) {
1315 1315
 		return $this->container_guid = (int)$container_guid;
@@ -1320,7 +1320,7 @@  discard block
 block discarded – undo
1320 1320
 	 *
1321 1321
 	 * @param int $container_guid The ID of the container.
1322 1322
 	 *
1323
-	 * @return bool
1323
+	 * @return integer
1324 1324
 	 * @deprecated 1.8 use setContainerGUID()
1325 1325
 	 */
1326 1326
 	public function setContainer($container_guid) {
@@ -1438,7 +1438,7 @@  discard block
 block discarded – undo
1438 1438
 	 * Plugins can register for the 'entity:icon:url', <type> plugin hook
1439 1439
 	 * to customize the icon for an entity.
1440 1440
 	 *
1441
-	 * @param mixed $params A string defining the size of the icon (e.g. tiny, small, medium, large)
1441
+	 * @param string $params A string defining the size of the icon (e.g. tiny, small, medium, large)
1442 1442
 	 *                      or an array of parameters including 'size'
1443 1443
 	 * @return string The URL
1444 1444
 	 * @since 1.8.0
@@ -1822,7 +1822,7 @@  discard block
 block discarded – undo
1822 1822
 	/**
1823 1823
 	 * Loads attributes from the entities table into the object.
1824 1824
 	 *
1825
-	 * @param mixed $guid GUID of entity or \stdClass object from entities table
1825
+	 * @param stdClass $guid GUID of entity or \stdClass object from entities table
1826 1826
 	 *
1827 1827
 	 * @return bool
1828 1828
 	 */
@@ -2295,7 +2295,7 @@  discard block
 block discarded – undo
2295 2295
 	 * @param int $year     If ommitted, now is assumed.
2296 2296
 	 * @param int $duration Duration of event, remainder of the day is assumed.
2297 2297
 	 *
2298
-	 * @return true
2298
+	 * @return boolean
2299 2299
 	 * @deprecated 1.9
2300 2300
 	 */
2301 2301
 	public function setCalendarTimeAndDuration($hour = null, $minute = null, $second = null,
@@ -2343,7 +2343,7 @@  discard block
 block discarded – undo
2343 2343
 	/**
2344 2344
 	 * Returns an array of fields which can be exported.
2345 2345
 	 *
2346
-	 * @return array
2346
+	 * @return string[]
2347 2347
 	 * @deprecated 1.9 Use toObject()
2348 2348
 	 */
2349 2349
 	public function getExportableValues() {
@@ -2455,7 +2455,7 @@  discard block
 block discarded – undo
2455 2455
 	 *
2456 2456
 	 * @param ODD $data XML data
2457 2457
 	 *
2458
-	 * @return true
2458
+	 * @return boolean
2459 2459
 	 *
2460 2460
 	 * @throws InvalidParameterException
2461 2461
 	 * @deprecated 1.9 Use toObject()
@@ -2499,7 +2499,7 @@  discard block
 block discarded – undo
2499 2499
 	 * This is used by the system log. It can be called on any Loggable object.
2500 2500
 	 *
2501 2501
 	 * @param int $id GUID.
2502
-	 * @return int GUID
2502
+	 * @return ElggEntity GUID
2503 2503
 	 */
2504 2504
 	public function getObjectFromID($id) {
2505 2505
 		return get_entity($id);
Please login to merge, or discard this patch.
engine/classes/ElggExtender.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
 	/**
205 205
 	 * Return an array of fields which can be exported.
206 206
 	 *
207
-	 * @return array
207
+	 * @return string[]
208 208
 	 * @deprecated 1.9 Use toObject()
209 209
 	 */
210 210
 	public function getExportableValues() {
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
 	/**
224 224
 	 * Export this object
225 225
 	 *
226
-	 * @return array
226
+	 * @return ODDMetaData
227 227
 	 * @deprecated 1.9 Use toObject()
228 228
 	 */
229 229
 	public function export() {
Please login to merge, or discard this patch.
engine/classes/ElggFile.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 	 *
115 115
 	 * @param string $mimetype The mimetype
116 116
 	 *
117
-	 * @return bool
117
+	 * @return string
118 118
 	 */
119 119
 	public function setMimeType($mimetype) {
120 120
 		return $this->mimetype = $mimetype;
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 	 *
126 126
 	 * @note This method can be called both dynamically and statically
127 127
 	 *
128
-	 * @param mixed $file    The full path of the file to check. For uploaded files, use tmp_name.
128
+	 * @param string $file    The full path of the file to check. For uploaded files, use tmp_name.
129 129
 	 * @param mixed $default A default. Useful to pass what the browser thinks it is.
130 130
 	 * @since 1.7.12
131 131
 	 *
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 	 *
172 172
 	 * @param string $description The description.
173 173
 	 *
174
-	 * @return bool
174
+	 * @return boolean|null
175 175
 	 */
176 176
 	public function setDescription($description) {
177 177
 		$this->description = $description;
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
 	 *
222 222
 	 * @param string $data The data
223 223
 	 *
224
-	 * @return bool
224
+	 * @return integer
225 225
 	 */
226 226
 	public function write($data) {
227 227
 		$fs = $this->getFilestore();
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
 	/**
247 247
 	 * Gets the full contents of this file.
248 248
 	 *
249
-	 * @return mixed The file contents.
249
+	 * @return string The file contents.
250 250
 	 */
251 251
 	public function grabFile() {
252 252
 		$fs = $this->getFilestore();
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
 	 *
293 293
 	 * @param int $position Position in bytes
294 294
 	 *
295
-	 * @return bool
295
+	 * @return boolean|null
296 296
 	 */
297 297
 	public function seek($position) {
298 298
 		$fs = $this->getFilestore();
Please login to merge, or discard this patch.
engine/classes/ElggGroup.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -561,7 +561,7 @@
 block discarded – undo
561 561
 	/**
562 562
 	 * Return an array of fields which can be exported.
563 563
 	 *
564
-	 * @return array
564
+	 * @return string[]
565 565
 	 * @deprecated 1.9 Use toObject()
566 566
 	 */
567 567
 	public function getExportableValues() {
Please login to merge, or discard this patch.
engine/classes/ElggMemcache.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -205,7 +205,7 @@
 block discarded – undo
205 205
 	/**
206 206
 	 * Clears the entire cache
207 207
 	 *
208
-	 * @return true
208
+	 * @return boolean
209 209
 	 */
210 210
 	public function clear() {
211 211
 		$result = $this->memcache->flush();
Please login to merge, or discard this patch.
engine/classes/ElggMenuBuilder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 	 * Get a prepared menu array
29 29
 	 *
30 30
 	 * @param mixed $sort_by Method to sort the menu by. @see \ElggMenuBuilder::sort()
31
-	 * @return array
31
+	 * @return ElggMenuItem[]
32 32
 	 */
33 33
 	public function getMenu($sort_by = 'text') {
34 34
 
Please login to merge, or discard this patch.