Code Duplication    Length = 5-5 lines in 2 locations

includes/class-wc-ajax.php 2 locations

@@ 851-855 (lines=5) @@
848
			$tax_class_options     = array();
849
			$tax_class_options[''] = __( 'Standard', 'woocommerce' );
850
851
			if ( ! empty( $tax_classes ) ) {
852
				foreach ( $tax_classes as $class ) {
853
					$tax_class_options[ sanitize_title( $class ) ] = esc_attr( $class );
854
				}
855
			}
856
857
			// Set backorder options
858
			$backorder_options = array(
@@ 2461-2465 (lines=5) @@
2458
		$tax_class_options     = array();
2459
		$tax_class_options[''] = __( 'Standard', 'woocommerce' );
2460
2461
		if ( ! empty( $tax_classes ) ) {
2462
			foreach ( $tax_classes as $class ) {
2463
				$tax_class_options[ sanitize_title( $class ) ] = esc_attr( $class );
2464
			}
2465
		}
2466
2467
		// Set backorder options
2468
		$backorder_options = array(