Code Duplication    Length = 9-10 lines in 2 locations

packages/sync/src/Replicastore.php 2 locations

@@ 665-674 (lines=10) @@
662
					$columns = Defaults::$default_post_checksum_columns;
663
				}
664
				break;
665
			case 'post_meta':
666
				$object_table = $wpdb->postmeta;
667
				$where_sql    = Settings::get_whitelisted_post_meta_sql();
668
				$object_count = $this->meta_count( $object_table, $where_sql, $start_id, $end_id );
669
				$id_field     = 'meta_id';
670
671
				if ( empty( $columns ) ) {
672
					$columns = Defaults::$default_post_meta_checksum_columns;
673
				}
674
				break;
675
			case 'comments':
676
				$object_count = $this->comment_count( null, $start_id, $end_id );
677
				$object_table = $wpdb->comments;
@@ 684-692 (lines=9) @@
681
					$columns = Defaults::$default_comment_checksum_columns;
682
				}
683
				break;
684
			case 'comment_meta':
685
				$object_table = $wpdb->commentmeta;
686
				$where_sql    = Settings::get_whitelisted_comment_meta_sql();
687
				$object_count = $this->meta_count( $object_table, $where_sql, $start_id, $end_id );
688
				$id_field     = 'meta_id';
689
				if ( empty( $columns ) ) {
690
					$columns = Defaults::$default_post_meta_checksum_columns;
691
				}
692
				break;
693
			case "terms":
694
				$object_table = $wpdb->terms;
695
				$object_count = $this->term_count();