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(
@@ 2228-2232 (lines=5) @@
2225
		$tax_class_options     = array();
2226
		$tax_class_options[''] = __( 'Standard', 'woocommerce' );
2227
2228
		if ( ! empty( $tax_classes ) ) {
2229
			foreach ( $tax_classes as $class ) {
2230
				$tax_class_options[ sanitize_title( $class ) ] = esc_attr( $class );
2231
			}
2232
		}
2233
2234
		// Set backorder options
2235
		$backorder_options = array(