Code Duplication    Length = 3-3 lines in 2 locations

includes/class-wc-ajax.php 2 locations

@@ 1619-1621 (lines=3) @@
1616
			die();
1617
		}
1618
1619
		if ( ! empty( $_GET['exclude'] ) ) {
1620
			$exclude = array_map( 'intval', explode( ',', $_GET['exclude'] ) );
1621
		}
1622
1623
		$found_products = array();
1624
@@ 1679-1681 (lines=3) @@
1676
		$term    = (string) wc_clean( stripslashes( $_GET['term'] ) );
1677
		$exclude = array();
1678
1679
		if ( ! empty( $_GET['exclude'] ) ) {
1680
			$exclude = array_map( 'intval', explode( ',', $_GET['exclude'] ) );
1681
		}
1682
1683
		$args = array(
1684
			'post_type'      => array( 'product', 'product_variation' ),