Code Duplication    Length = 5-5 lines in 2 locations

includes/class-wc-ajax.php 2 locations

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