Code Duplication    Length = 5-5 lines in 2 locations

includes/class-wc-ajax.php 2 locations

@@ 843-847 (lines=5) @@
840
			$tax_class_options     = array();
841
			$tax_class_options[''] = __( 'Standard', 'woocommerce' );
842
843
			if ( ! empty( $tax_classes ) ) {
844
				foreach ( $tax_classes as $class ) {
845
					$tax_class_options[ sanitize_title( $class ) ] = esc_attr( $class );
846
				}
847
			}
848
849
			// Set backorder options
850
			$backorder_options = array(
@@ 2403-2407 (lines=5) @@
2400
		$tax_class_options     = array();
2401
		$tax_class_options[''] = __( 'Standard', 'woocommerce' );
2402
2403
		if ( ! empty( $tax_classes ) ) {
2404
			foreach ( $tax_classes as $class ) {
2405
				$tax_class_options[ sanitize_title( $class ) ] = esc_attr( $class );
2406
			}
2407
		}
2408
2409
		// Set backorder options
2410
		$backorder_options = array(