Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 641-647 (lines=7) @@
638
		}
639
640
		// Default to base
641
		if ( 'base' === $tax_based_on || empty( $country ) ) {
642
			$default  = wc_get_base_location();
643
			$country  = $default['country'];
644
			$state    = $default['state'];
645
			$postcode = '';
646
			$city     = '';
647
		}
648
649
		// Get items
650
		foreach ( $this->get_items( array( 'line_item', 'fee' ) ) as $item_id => $item ) {

includes/class-wc-ajax.php 1 location

@@ 1504-1510 (lines=7) @@
1501
		$shipping_taxes = array();
1502
1503
		// Default to base
1504
		if ( 'base' === $tax_based_on || empty( $country ) ) {
1505
			$default  = wc_get_base_location();
1506
			$country  = $default['country'];
1507
			$state    = $default['state'];
1508
			$postcode = '';
1509
			$city     = '';
1510
		}
1511
1512
		// Parse the jQuery serialized items
1513
		parse_str( $_POST['items'], $items );