Code Duplication    Length = 5-5 lines in 2 locations

includes/class-wc-ajax.php 2 locations

@@ 800-804 (lines=5) @@
797
			$tax_class_options     = array();
798
			$tax_class_options[''] = __( 'Standard', 'woocommerce' );
799
800
			if ( ! empty( $tax_classes ) ) {
801
				foreach ( $tax_classes as $class ) {
802
					$tax_class_options[ sanitize_title( $class ) ] = esc_attr( $class );
803
				}
804
			}
805
806
			// Set backorder options
807
			$backorder_options = array(
@@ 2200-2204 (lines=5) @@
2197
		$tax_class_options     = array();
2198
		$tax_class_options[''] = __( 'Standard', 'woocommerce' );
2199
2200
		if ( ! empty( $tax_classes ) ) {
2201
			foreach ( $tax_classes as $class ) {
2202
				$tax_class_options[ sanitize_title( $class ) ] = esc_attr( $class );
2203
			}
2204
		}
2205
2206
		// Set backorder options
2207
		$backorder_options = array(