Code Duplication    Length = 5-5 lines in 2 locations

includes/class-wc-ajax.php 2 locations

@@ 834-838 (lines=5) @@
831
			$tax_class_options     = array();
832
			$tax_class_options[''] = __( 'Standard', 'woocommerce' );
833
834
			if ( ! empty( $tax_classes ) ) {
835
				foreach ( $tax_classes as $class ) {
836
					$tax_class_options[ sanitize_title( $class ) ] = esc_attr( $class );
837
				}
838
			}
839
840
			// Set backorder options
841
			$backorder_options = array(
@@ 2431-2435 (lines=5) @@
2428
		$tax_class_options     = array();
2429
		$tax_class_options[''] = __( 'Standard', 'woocommerce' );
2430
2431
		if ( ! empty( $tax_classes ) ) {
2432
			foreach ( $tax_classes as $class ) {
2433
				$tax_class_options[ sanitize_title( $class ) ] = esc_attr( $class );
2434
			}
2435
		}
2436
2437
		// Set backorder options
2438
		$backorder_options = array(