Code Duplication    Length = 5-5 lines in 2 locations

includes/class-wc-ajax.php 2 locations

@@ 827-831 (lines=5) @@
824
			$tax_class_options     = array();
825
			$tax_class_options[''] = __( 'Standard', 'woocommerce' );
826
827
			if ( ! empty( $tax_classes ) ) {
828
				foreach ( $tax_classes as $class ) {
829
					$tax_class_options[ sanitize_title( $class ) ] = esc_attr( $class );
830
				}
831
			}
832
833
			// Set backorder options
834
			$backorder_options = array(
@@ 2413-2417 (lines=5) @@
2410
		$tax_class_options     = array();
2411
		$tax_class_options[''] = __( 'Standard', 'woocommerce' );
2412
2413
		if ( ! empty( $tax_classes ) ) {
2414
			foreach ( $tax_classes as $class ) {
2415
				$tax_class_options[ sanitize_title( $class ) ] = esc_attr( $class );
2416
			}
2417
		}
2418
2419
		// Set backorder options
2420
		$backorder_options = array(