Completed
Push — master ( fab0a4...8e249d )
by Jeroen
41:43 queued 16:43
created
engine/classes/ElggEntity.php 1 patch
Doc Comments   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -459,7 +459,7 @@  discard block
 block discarded – undo
459 459
 	 * @warning Calling this with no $name will clear all metadata on the entity.
460 460
 	 *
461 461
 	 * @param null|string $name The name of the metadata to remove.
462
-	 * @return bool
462
+	 * @return boolean|null
463 463
 	 * @since 1.8
464 464
 	 */
465 465
 	public function deleteMetadata($name = null) {
@@ -484,7 +484,7 @@  discard block
 block discarded – undo
484 484
 	 * If you pass a name, only metadata matching that name will be deleted.
485 485
 	 *
486 486
 	 * @param null|string $name The name of metadata to delete.
487
-	 * @return bool
487
+	 * @return boolean|null
488 488
 	 * @since 1.8
489 489
 	 */
490 490
 	public function deleteOwnedMetadata($name = null) {
@@ -508,7 +508,7 @@  discard block
 block discarded – undo
508 508
 	 * Disables metadata for this entity, optionally based on name.
509 509
 	 *
510 510
 	 * @param string $name An options name of metadata to disable.
511
-	 * @return bool
511
+	 * @return boolean|null
512 512
 	 * @since 1.8
513 513
 	 */
514 514
 	public function disableMetadata($name = '') {
@@ -529,7 +529,7 @@  discard block
 block discarded – undo
529 529
 	 * @warning Before calling this, you must use {@link access_show_hidden_entities()}
530 530
 	 *
531 531
 	 * @param string $name An options name of metadata to enable.
532
-	 * @return bool
532
+	 * @return boolean|null
533 533
 	 * @since 1.8
534 534
 	 */
535 535
 	public function enableMetadata($name = '') {
@@ -682,7 +682,7 @@  discard block
 block discarded – undo
682 682
 	 *
683 683
 	 * @param string $name Name of the private setting
684 684
 	 *
685
-	 * @return bool
685
+	 * @return integer
686 686
 	 */
687 687
 	public function removePrivateSetting($name) {
688 688
 		return remove_private_setting($this->getGUID(), $name);
@@ -695,7 +695,7 @@  discard block
 block discarded – undo
695 695
 	 * @warning Calling this with no or empty arguments will clear all annotations on the entity.
696 696
 	 *
697 697
 	 * @param null|string $name The annotations name to remove.
698
-	 * @return bool
698
+	 * @return boolean|null
699 699
 	 * @since 1.8
700 700
 	 */
701 701
 	public function deleteAnnotations($name = null) {
@@ -715,7 +715,7 @@  discard block
 block discarded – undo
715 715
 	 * If you pass a name, only annotations matching that name will be deleted.
716 716
 	 *
717 717
 	 * @param null|string $name The name of annotations to delete.
718
-	 * @return bool
718
+	 * @return boolean|null
719 719
 	 * @since 1.8
720 720
 	 */
721 721
 	public function deleteOwnedAnnotations($name = null) {
@@ -739,7 +739,7 @@  discard block
 block discarded – undo
739 739
 	 * Disables annotations for this entity, optionally based on name.
740 740
 	 *
741 741
 	 * @param string $name An options name of annotations to disable.
742
-	 * @return bool
742
+	 * @return boolean|null
743 743
 	 * @since 1.8
744 744
 	 */
745 745
 	public function disableAnnotations($name = '') {
@@ -760,7 +760,7 @@  discard block
 block discarded – undo
760 760
 	 * @warning Before calling this, you must use {@link access_show_hidden_entities()}
761 761
 	 *
762 762
 	 * @param string $name An options name of annotations to enable.
763
-	 * @return bool
763
+	 * @return boolean|null
764 764
 	 * @since 1.8
765 765
 	 */
766 766
 	public function enableAnnotations($name = '') {
@@ -807,7 +807,7 @@  discard block
 block discarded – undo
807 807
 	 * @param int    $owner_guid GUID of the annotation owner
808 808
 	 * @param string $vartype    The type of annotation value
809 809
 	 *
810
-	 * @return bool|int Returns int if an annotation is saved
810
+	 * @return integer Returns int if an annotation is saved
811 811
 	 */
812 812
 	public function annotate($name, $value, $access_id = ACCESS_PRIVATE, $owner_guid = 0, $vartype = "") {
813 813
 		if ((int) $this->guid > 0) {
@@ -1113,7 +1113,7 @@  discard block
 block discarded – undo
1113 1113
 	 *
1114 1114
 	 * @param int $container_guid The ID of the container.
1115 1115
 	 *
1116
-	 * @return bool
1116
+	 * @return integer
1117 1117
 	 */
1118 1118
 	public function setContainerGUID($container_guid) {
1119 1119
 		return $this->container_guid = (int) $container_guid;
@@ -1192,7 +1192,7 @@  discard block
 block discarded – undo
1192 1192
 	/**
1193 1193
 	 * Saves icons using a file located in the data store as the source.
1194 1194
 	 *
1195
-	 * @param string $file   An ElggFile instance
1195
+	 * @param ElggFile $file   An ElggFile instance
1196 1196
 	 * @param string $type   The name of the icon. e.g., 'icon', 'cover_photo'
1197 1197
 	 * @param array  $coords An array of cropping coordinates x1, y1, x2, y2
1198 1198
 	 * @return bool
@@ -1217,7 +1217,7 @@  discard block
 block discarded – undo
1217 1217
 	 * Removes all icon files and metadata for the passed type of icon.
1218 1218
 	 *
1219 1219
 	 * @param string $type The name of the icon. e.g., 'icon', 'cover_photo'
1220
-	 * @return bool
1220
+	 * @return boolean|null
1221 1221
 	 */
1222 1222
 	public function deleteIcon($type = 'icon') {
1223 1223
 		return _elgg_services()->iconService->deleteIcon($this, $type);
@@ -1252,7 +1252,7 @@  discard block
 block discarded – undo
1252 1252
 	 * Plugins can register for the 'entity:icon:url', <type> plugin hook
1253 1253
 	 * to customize the icon for an entity.
1254 1254
 	 *
1255
-	 * @param mixed $params A string defining the size of the icon (e.g. tiny, small, medium, large)
1255
+	 * @param string $params A string defining the size of the icon (e.g. tiny, small, medium, large)
1256 1256
 	 *                      or an array of parameters including 'size'
1257 1257
 	 * @return string The URL
1258 1258
 	 * @since 1.8.0
@@ -2073,7 +2073,7 @@  discard block
 block discarded – undo
2073 2073
 	 * This is used by the system log. It can be called on any Loggable object.
2074 2074
 	 *
2075 2075
 	 * @param int $id GUID.
2076
-	 * @return int GUID
2076
+	 * @return ElggEntity GUID
2077 2077
 	 */
2078 2078
 	public function getObjectFromID($id) {
2079 2079
 		return get_entity($id);
Please login to merge, or discard this patch.
engine/classes/Elgg/Application/CacheHandler.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use Elgg\Http\Request;
7 7
 use Symfony\Component\HttpFoundation\BinaryFileResponse;
8 8
 use Symfony\Component\HttpFoundation\Response;
9
-use Symfony\Component\HttpFoundation\StreamedResponse;
10 9
 
11 10
 /**
12 11
  * Simplecache handler
Please login to merge, or discard this patch.
engine/classes/Elgg/Database/ConfigTable.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
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 = "
Please login to merge, or discard this patch.
engine/classes/Elgg/ViewsService.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -285,6 +285,7 @@  discard block
 block discarded – undo
285 285
 
286 286
 	/**
287 287
 	 * @access private
288
+	 * @param string $viewtype
288 289
 	 */
289 290
 	public function registerViewtypeFallback($viewtype) {
290 291
 		$this->fallbacks[] = $viewtype;
@@ -292,6 +293,7 @@  discard block
 block discarded – undo
292 293
 
293 294
 	/**
294 295
 	 * @access private
296
+	 * @param string $viewtype
295 297
 	 */
296 298
 	public function doesViewtypeFallback($viewtype) {
297 299
 		return in_array($viewtype, $this->fallbacks);
@@ -454,6 +456,7 @@  discard block
 block discarded – undo
454 456
 
455 457
 	/**
456 458
 	 * @access private
459
+	 * @param string $view
457 460
 	 */
458 461
 	public function viewExists($view, $viewtype = '', $recurse = true) {
459 462
 		$view = self::canonicalizeViewName($view);
@@ -495,6 +498,8 @@  discard block
 block discarded – undo
495 498
 
496 499
 	/**
497 500
 	 * @access private
501
+	 * @param string $view
502
+	 * @param string $view_extension
498 503
 	 */
499 504
 	public function extendView($view, $view_extension, $priority = 501) {
500 505
 		$view = self::canonicalizeViewName($view);
@@ -541,6 +546,8 @@  discard block
 block discarded – undo
541 546
 
542 547
 	/**
543 548
 	 * @access private
549
+	 * @param string $view
550
+	 * @param string $view_extension
544 551
 	 */
545 552
 	public function unextendView($view, $view_extension) {
546 553
 		$view = self::canonicalizeViewName($view);
@@ -562,6 +569,7 @@  discard block
 block discarded – undo
562 569
 
563 570
 	/**
564 571
 	 * @access private
572
+	 * @param string $view
565 573
 	 */
566 574
 	public function registerCacheableView($view) {
567 575
 		$view = self::canonicalizeViewName($view);
@@ -571,6 +579,7 @@  discard block
 block discarded – undo
571 579
 
572 580
 	/**
573 581
 	 * @access private
582
+	 * @param string $view
574 583
 	 */
575 584
 	public function isCacheableView($view) {
576 585
 		$view = self::canonicalizeViewName($view);
Please login to merge, or discard this patch.
engine/classes/ElggInstaller.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-use Elgg\Filesystem\Directory;
4 3
 use Elgg\Application;
5 4
 use Elgg\Config;
6 5
 use Elgg\Database\DbConfig;
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
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
 	 * @param int    $unused1 Unused
114 114
 	 * @param int    $unused2 Unused
115 115
 	 *
116
-	 * @return mixed
116
+	 * @return ElggEntity
117 117
 	 */
118 118
 	public function load($key, $unused1 = 0, $unused2 = null) {
119 119
 		$key = $this->makeMemcacheKey($key);
Please login to merge, or discard this patch.
engine/classes/ElggRewriteTester.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 use Elgg\Filesystem\Directory;
4
-use Elgg\Application;
5 4
 use Elgg\Project\Paths;
6 5
 use Elgg\Http\Request;
7 6
 
Please login to merge, or discard this patch.
engine/classes/Elgg/UpgradeService.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Elgg;
3
-use Elgg\Filesystem\Directory\Local;
4
-use Phinx\Console\PhinxApplication;
5
-use Phinx\Wrapper\TextWrapper;
6 3
 
7 4
 /**
8 5
  * Upgrade service for Elgg
Please login to merge, or discard this patch.
engine/lib/notification.php 2 patches
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
  *
56 56
  * @param string $object_type    'object', 'user', 'group', 'site'
57 57
  * @param string $object_subtype The subtype or name of the entity
58
- * @param array  $actions        Array of actions or empty array for the action event.
58
+ * @param string[]  $actions        Array of actions or empty array for the action event.
59 59
  *                                An event is usually described by the first string passed
60 60
  *                                to elgg_trigger_event(). Examples include
61 61
  *                                'create', 'update', and 'publish'. The default is 'create'.
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
  * @param string $type   Hook type
212 212
  * @param bool   $result Has anyone sent a message yet?
213 213
  * @param array  $params Hook parameters
214
- * @return bool
214
+ * @return null|boolean
215 215
  * @access private
216 216
  */
217 217
 function _elgg_send_email_notification($hook, $type, $result, $params) {
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
  *
258 258
  * @see    https://tools.ietf.org/html/rfc5322#section-3.6.4
259 259
  *
260
- * @return array
260
+ * @return null|Elgg\Email
261 261
  * @access private
262 262
  */
263 263
 function _elgg_notifications_smtp_default_message_id_header($hook, $type, $email) {
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
  * @param string      $type  "system:email"
285 285
  * @param \Elgg\Email $email Email instance
286 286
  *
287
- * @return array
287
+ * @return null|Elgg\Email
288 288
  * @access private
289 289
  */
290 290
 function _elgg_notifications_smtp_thread_headers($hook, $type, $email) {
@@ -356,12 +356,12 @@  discard block
 block discarded – undo
356 356
 /**
357 357
  * Notify a user via their preferences.
358 358
  *
359
- * @param mixed  $to               Either a guid or an array of guid's to notify.
359
+ * @param integer  $to               Either a guid or an array of guid's to notify.
360 360
  * @param int    $from             GUID of the sender, which may be a user, site or object.
361 361
  * @param string $subject          Message subject.
362 362
  * @param string $message          Message body.
363 363
  * @param array  $params           Misc additional parameters specific to various methods.
364
- * @param mixed  $methods_override A string, or an array of strings specifying the delivery
364
+ * @param string[]  $methods_override A string, or an array of strings specifying the delivery
365 365
  *                                 methods to use - or leave blank for delivery using the
366 366
  *                                 user's chosen delivery methods.
367 367
  *
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-use Elgg\Mail\Address;
4 3
 use Zend\Mail\Message;
5
-use Elgg\Project\Paths;
6 4
 
7 5
 /**
8 6
  * Adding a New Notification Event
Please login to merge, or discard this patch.