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(
@@ 2244-2248 (lines=5) @@
2241
		$tax_class_options     = array();
2242
		$tax_class_options[''] = __( 'Standard', 'woocommerce' );
2243
2244
		if ( ! empty( $tax_classes ) ) {
2245
			foreach ( $tax_classes as $class ) {
2246
				$tax_class_options[ sanitize_title( $class ) ] = esc_attr( $class );
2247
			}
2248
		}
2249
2250
		// Set backorder options
2251
		$backorder_options = array(