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(
@@ 2424-2428 (lines=5) @@
2421
		$tax_class_options     = array();
2422
		$tax_class_options[''] = __( 'Standard', 'woocommerce' );
2423
2424
		if ( ! empty( $tax_classes ) ) {
2425
			foreach ( $tax_classes as $class ) {
2426
				$tax_class_options[ sanitize_title( $class ) ] = esc_attr( $class );
2427
			}
2428
		}
2429
2430
		// Set backorder options
2431
		$backorder_options = array(