Code Duplication    Length = 4-4 lines in 2 locations

packages/sync/src/replicastore/class-table-checksum.php 2 locations

@@ 359-362 (lines=4) @@
356
		 */
357
358
		$filter_array = array( '1 = 1' );
359
		if ( null !== $range_from ) {
360
			// phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
361
			$filter_array[] = $wpdb->prepare( "{$parent_prefix}{$this->range_field} >= %d", array( intval( $range_from ) ) );
362
		}
363
		if ( null !== $range_to ) {
364
			// phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
365
			$filter_array[] = $wpdb->prepare( "{$parent_prefix}{$this->range_field} <= %d", array( intval( $range_to ) ) );
@@ 363-366 (lines=4) @@
360
			// phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
361
			$filter_array[] = $wpdb->prepare( "{$parent_prefix}{$this->range_field} >= %d", array( intval( $range_from ) ) );
362
		}
363
		if ( null !== $range_to ) {
364
			// phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
365
			$filter_array[] = $wpdb->prepare( "{$parent_prefix}{$this->range_field} <= %d", array( intval( $range_to ) ) );
366
		}
367
368
		/**
369
		 * End prepare the ranges.