Code Duplication    Length = 5-5 lines in 2 locations

includes/class-wc-ajax.php 2 locations

@@ 844-848 (lines=5) @@
841
			$tax_class_options     = array();
842
			$tax_class_options[''] = __( 'Standard', 'woocommerce' );
843
844
			if ( ! empty( $tax_classes ) ) {
845
				foreach ( $tax_classes as $class ) {
846
					$tax_class_options[ sanitize_title( $class ) ] = esc_attr( $class );
847
				}
848
			}
849
850
			// Set backorder options
851
			$backorder_options = array(
@@ 2224-2228 (lines=5) @@
2221
		$tax_class_options     = array();
2222
		$tax_class_options[''] = __( 'Standard', 'woocommerce' );
2223
2224
		if ( ! empty( $tax_classes ) ) {
2225
			foreach ( $tax_classes as $class ) {
2226
				$tax_class_options[ sanitize_title( $class ) ] = esc_attr( $class );
2227
			}
2228
		}
2229
2230
		// Set backorder options
2231
		$backorder_options = array(