Code Duplication    Length = 7-7 lines in 2 locations

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

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

includes/class-wc-ajax.php 1 location

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