Code Duplication    Length = 3-3 lines in 2 locations

includes/class-wc-ajax.php 2 locations

@@ 1797-1799 (lines=3) @@
1794
			die();
1795
		}
1796
1797
		if ( ! empty( $_GET['exclude'] ) ) {
1798
			$exclude = array_map( 'intval', explode( ',', $_GET['exclude'] ) );
1799
		}
1800
1801
		$found_products = array();
1802
@@ 1857-1859 (lines=3) @@
1854
		$term    = (string) wc_clean( stripslashes( $_GET['term'] ) );
1855
		$exclude = array();
1856
1857
		if ( ! empty( $_GET['exclude'] ) ) {
1858
			$exclude = array_map( 'intval', explode( ',', $_GET['exclude'] ) );
1859
		}
1860
1861
		$args = array(
1862
			'post_type'      => array( 'product', 'product_variation' ),