Code Duplication    Length = 7-7 lines in 2 locations

includes/class-wc-ajax.php 1 location

@@ 1489-1495 (lines=7) @@
1486
		$order_item_tax_classes = array();
1487
1488
		// Default to base
1489
		if ( 'base' === $tax_based_on || empty( $country ) ) {
1490
			$default  = wc_get_base_location();
1491
			$country  = $default['country'];
1492
			$state    = $default['state'];
1493
			$postcode = '';
1494
			$city     = '';
1495
		}
1496
1497
		// Parse the jQuery serialized items
1498
		parse_str( $_POST['items'], $items );

includes/abstracts/abstract-wc-order.php 1 location

@@ 710-716 (lines=7) @@
707
		}
708
709
		// Default to base
710
		if ( 'base' === $tax_based_on || empty( $country ) ) {
711
			$default  = wc_get_base_location();
712
			$country  = $default['country'];
713
			$state    = $default['state'];
714
			$postcode = '';
715
			$city     = '';
716
		}
717
718
		// Get items
719
		foreach ( $this->get_items( array( 'line_item', 'fee' ) ) as $item_id => $item ) {