Code Duplication    Length = 8-8 lines in 2 locations

includes/data-stores/class-wc-product-data-store-cpt.php 2 locations

@@ 1781-1788 (lines=8) @@
1778
					'operator' => 'NOT EXISTS',
1779
				),
1780
			);
1781
		} else {
1782
			$wp_query_args['post_type']   = 'product';
1783
			$wp_query_args['tax_query'][] = array(
1784
				'taxonomy' => 'product_type',
1785
				'field'    => 'slug',
1786
				'terms'    => $query_vars['type'],
1787
			);
1788
		}
1789
1790
		// Handle product categories.
1791
		if ( ! empty( $query_vars['category'] ) ) {
@@ 1800-1807 (lines=8) @@
1797
		}
1798
1799
		// Handle product tags.
1800
		if ( ! empty( $query_vars['tag'] ) ) {
1801
			unset( $wp_query_args['tag'] );
1802
			$wp_query_args['tax_query'][] = array(
1803
				'taxonomy' => 'product_tag',
1804
				'field'    => 'slug',
1805
				'terms'    => $query_vars['tag'],
1806
			);
1807
		}
1808
1809
		// Handle shipping classes.
1810
		if ( ! empty( $query_vars['shipping_class'] ) ) {