Code Duplication    Length = 9-10 lines in 2 locations

packages/sync/src/Replicastore.php 2 locations

@@ 662-671 (lines=10) @@
659
					$columns = \Jetpack_Sync_Defaults::$default_post_checksum_columns;
660
				}
661
				break;
662
			case 'post_meta':
663
				$object_table = $wpdb->postmeta;
664
				$where_sql    = \Jetpack_Sync_Settings::get_whitelisted_post_meta_sql();
665
				$object_count = $this->meta_count( $object_table, $where_sql, $start_id, $end_id );
666
				$id_field     = 'meta_id';
667
668
				if ( empty( $columns ) ) {
669
					$columns = \Jetpack_Sync_Defaults::$default_post_meta_checksum_columns;
670
				}
671
				break;
672
			case 'comments':
673
				$object_count = $this->comment_count( null, $start_id, $end_id );
674
				$object_table = $wpdb->comments;
@@ 681-689 (lines=9) @@
678
					$columns = \Jetpack_Sync_Defaults::$default_comment_checksum_columns;
679
				}
680
				break;
681
			case 'comment_meta':
682
				$object_table = $wpdb->commentmeta;
683
				$where_sql    = \Jetpack_Sync_Settings::get_whitelisted_comment_meta_sql();
684
				$object_count = $this->meta_count( $object_table, $where_sql, $start_id, $end_id );
685
				$id_field     = 'meta_id';
686
				if ( empty( $columns ) ) {
687
					$columns = \Jetpack_Sync_Defaults::$default_post_meta_checksum_columns;
688
				}
689
				break;
690
			default:
691
				return false;
692
		}