Code Duplication    Length = 7-7 lines in 2 locations

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

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

includes/class-wc-ajax.php 1 location

@@ 1526-1532 (lines=7) @@
1523
		$shipping_taxes = array();
1524
1525
		// Default to base
1526
		if ( 'base' === $tax_based_on || empty( $country ) ) {
1527
			$default  = wc_get_base_location();
1528
			$country  = $default['country'];
1529
			$state    = $default['state'];
1530
			$postcode = '';
1531
			$city     = '';
1532
		}
1533
1534
		// Parse the jQuery serialized items
1535
		parse_str( $_POST['items'], $items );