Code Duplication    Length = 5-5 lines in 2 locations

includes/class-wc-ajax.php 2 locations

@@ 828-832 (lines=5) @@
825
			$tax_class_options     = array();
826
			$tax_class_options[''] = __( 'Standard', 'woocommerce' );
827
828
			if ( ! empty( $tax_classes ) ) {
829
				foreach ( $tax_classes as $class ) {
830
					$tax_class_options[ sanitize_title( $class ) ] = esc_attr( $class );
831
				}
832
			}
833
834
			// Set backorder options
835
			$backorder_options = array(
@@ 2425-2429 (lines=5) @@
2422
		$tax_class_options     = array();
2423
		$tax_class_options[''] = __( 'Standard', 'woocommerce' );
2424
2425
		if ( ! empty( $tax_classes ) ) {
2426
			foreach ( $tax_classes as $class ) {
2427
				$tax_class_options[ sanitize_title( $class ) ] = esc_attr( $class );
2428
			}
2429
		}
2430
2431
		// Set backorder options
2432
		$backorder_options = array(