Code Duplication    Length = 3-3 lines in 2 locations

includes/class-wc-ajax.php 2 locations

@@ 1643-1645 (lines=3) @@
1640
			die();
1641
		}
1642
1643
		if ( ! empty( $_GET['exclude'] ) ) {
1644
			$exclude = array_map( 'intval', explode( ',', $_GET['exclude'] ) );
1645
		}
1646
1647
		$found_products = array();
1648
@@ 1703-1705 (lines=3) @@
1700
		$term    = (string) wc_clean( stripslashes( $_GET['term'] ) );
1701
		$exclude = array();
1702
1703
		if ( ! empty( $_GET['exclude'] ) ) {
1704
			$exclude = array_map( 'intval', explode( ',', $_GET['exclude'] ) );
1705
		}
1706
1707
		$args = array(
1708
			'post_type'      => array( 'product', 'product_variation' ),