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

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