Code Duplication    Length = 9-10 lines in 2 locations

packages/sync/src/Replicastore.php 2 locations

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