Code Duplication    Length = 5-5 lines in 2 locations

includes/class-wc-ajax.php 2 locations

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