Code Duplication    Length = 5-5 lines in 2 locations

includes/class-wc-ajax.php 2 locations

@@ 2404-2408 (lines=5) @@
2401
		$tax_class_options     = array();
2402
		$tax_class_options[''] = __( 'Standard', 'woocommerce' );
2403
2404
		if ( ! empty( $tax_classes ) ) {
2405
			foreach ( $tax_classes as $class ) {
2406
				$tax_class_options[ sanitize_title( $class ) ] = esc_attr( $class );
2407
			}
2408
		}
2409
2410
		// Set backorder options
2411
		$backorder_options = array(
@@ 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(