Completed
Push — reorg/update-project ( 1d471c...78741b )
by
unknown
309:43 queued 297:51
created
projects/packages/sync/src/modules/class-full-sync.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
 	 *
412 412
 	 * @access public
413 413
 	 *
414
-	 * @return int|null
414
+	 * @return null|double
415 415
 	 */
416 416
 	public function get_sync_progress_percentage() {
417 417
 		if ( ! $this->is_started() || $this->is_finished() ) {
@@ -625,7 +625,7 @@  discard block
 block discarded – undo
625 625
 	 * @access private
626 626
 	 *
627 627
 	 * @param string $name    Name of the option.
628
-	 * @param mixed  $default Default value of the option.
628
+	 * @param integer  $default Default value of the option.
629 629
 	 * @return mixed Option value.
630 630
 	 */
631 631
 	private function get_status_option( $name, $default = null ) {
Please login to merge, or discard this patch.
projects/packages/sync/src/modules/class-meta.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,8 +64,8 @@
 block discarded – undo
64 64
 	 * Get a single Meta Result.
65 65
 	 *
66 66
 	 * @param string $object_type  post, comment, term, user.
67
-	 * @param null   $id           Object ID.
68
-	 * @param null   $meta_key     Meta Key.
67
+	 * @param integer   $id           Object ID.
68
+	 * @param string   $meta_key     Meta Key.
69 69
 	 *
70 70
 	 * @return mixed|null
71 71
 	 */
Please login to merge, or discard this patch.
projects/packages/sync/src/modules/class-posts.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
 	 * @todo Use $wpdb->prepare for the SQL query.
202 202
 	 *
203 203
 	 * @param array $config Full sync configuration for this sync module.
204
-	 * @return array Number of items yet to be enqueued.
204
+	 * @return integer Number of items yet to be enqueued.
205 205
 	 */
206 206
 	public function estimate_full_sync_actions( $config ) {
207 207
 		global $wpdb;
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
 	 *
238 238
 	 * @access public
239 239
 	 *
240
-	 * @return array Full sync actions of this module.
240
+	 * @return string[] Full sync actions of this module.
241 241
 	 */
242 242
 	public function get_full_sync_actions() {
243 243
 		return array( 'jetpack_full_sync_posts' );
Please login to merge, or discard this patch.
projects/packages/sync/src/modules/class-term-relationships.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
 	 *
125 125
 	 * @access public
126 126
 	 *
127
-	 * @return array Full sync actions of this module.
127
+	 * @return string[] Full sync actions of this module.
128 128
 	 */
129 129
 	public function get_full_sync_actions() {
130 130
 		return array( 'jetpack_full_sync_term_relationships' );
Please login to merge, or discard this patch.
projects/packages/sync/src/modules/class-themes.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -502,7 +502,7 @@  discard block
 block discarded – undo
502 502
 	 * @access public
503 503
 	 *
504 504
 	 * @param array $config Full sync configuration for this sync module.
505
-	 * @return array Number of items yet to be enqueued.
505
+	 * @return integer Number of items yet to be enqueued.
506 506
 	 */
507 507
 	public function estimate_full_sync_actions( $config ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
508 508
 		return 1;
@@ -522,7 +522,7 @@  discard block
 block discarded – undo
522 522
 	 *
523 523
 	 * @access public
524 524
 	 *
525
-	 * @return array Full sync actions of this module.
525
+	 * @return string[] Full sync actions of this module.
526 526
 	 */
527 527
 	public function get_full_sync_actions() {
528 528
 		return array( 'jetpack_full_sync_theme_data' );
Please login to merge, or discard this patch.
projects/packages/sync/src/modules/class-users.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
 	 *
206 206
 	 * @access public
207 207
 	 *
208
-	 * @param \WP_User $user User object.
208
+	 * @param \WP_User|null $user User object.
209 209
 	 * @return \WP_User Expanded user object.
210 210
 	 */
211 211
 	public function expand_user( $user ) {
@@ -545,7 +545,7 @@  discard block
 block discarded – undo
545 545
 	 * @access public
546 546
 	 *
547 547
 	 * @param int $user_id ID of the user.
548
-	 * @return array Current flags of the user.
548
+	 * @return string Current flags of the user.
549 549
 	 */
550 550
 	public function get_flags( $user_id ) {
551 551
 		if ( isset( $this->flags[ $user_id ] ) ) {
@@ -636,7 +636,7 @@  discard block
 block discarded – undo
636 636
 	 * @todo Refactor to prepare the SQL query before executing it.
637 637
 	 *
638 638
 	 * @param array $config Full sync configuration for this sync module.
639
-	 * @return array Number of items yet to be enqueued.
639
+	 * @return integer Number of items yet to be enqueued.
640 640
 	 */
641 641
 	public function estimate_full_sync_actions( $config ) {
642 642
 		global $wpdb;
@@ -680,7 +680,7 @@  discard block
 block discarded – undo
680 680
 	 *
681 681
 	 * @access public
682 682
 	 *
683
-	 * @return array Full sync actions of this module.
683
+	 * @return string[] Full sync actions of this module.
684 684
 	 */
685 685
 	public function get_full_sync_actions() {
686 686
 		return array( 'jetpack_full_sync_users' );
Please login to merge, or discard this patch.
projects/packages/sync/src/replicastore/class-table-checksum.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
 	 *
225 225
 	 * @param string $table Table name to validate.
226 226
 	 *
227
-	 * @return mixed|string
227
+	 * @return string
228 228
 	 * @throws Exception Throw an exception on validation failure.
229 229
 	 */
230 230
 	private function validate_table_name( $table ) {
@@ -482,7 +482,7 @@  discard block
 block discarded – undo
482 482
 	 * @param int|null $range_to   The end of the range.
483 483
 	 * @param int|null $limit      How many values to return.
484 484
 	 *
485
-	 * @return array|object|void
485
+	 * @return boolean
486 486
 	 * @throws Exception Throws an exception if validation fails on the internal function calls.
487 487
 	 */
488 488
 	public function get_range_edges( $range_from = null, $range_to = null, $limit = null ) {
Please login to merge, or discard this patch.
projects/packages/tracking/legacy/class-jetpack-tracks-client.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
 	/**
53 53
 	 * Record an event.
54 54
 	 *
55
-	 * @param  mixed $event Event object to send to Tracks. An array will be cast to object. Required.
55
+	 * @param  Jetpack_Tracks_Event $event Event object to send to Tracks. An array will be cast to object. Required.
56 56
 	 *                      Properties are included directly in the pixel query string after light validation.
57 57
 	 * @return mixed         True on success, WP_Error on failure
58 58
 	 */
Please login to merge, or discard this patch.
projects/packages/tracking/src/class-tracking.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -119,8 +119,8 @@
 block discarded – undo
119 119
 	/**
120 120
 	 * Determines whether tracking should be enabled.
121 121
 	 *
122
-	 * @param Automattic\Jetpack\Terms_Of_Service $terms_of_service A Terms_Of_Service object.
123
-	 * @param Automattic\Jetpack\Status           $status A Status object.
122
+	 * @param Terms_Of_Service $terms_of_service A Terms_Of_Service object.
123
+	 * @param Status           $status A Status object.
124 124
 	 *
125 125
 	 * @return boolean True if tracking should be enabled, else false.
126 126
 	 */
Please login to merge, or discard this patch.