Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 690-696 (lines=7) @@
687
		}
688
689
		// Default to base
690
		if ( 'base' === $tax_based_on || empty( $country ) ) {
691
			$default  = wc_get_base_location();
692
			$country  = $default['country'];
693
			$state    = $default['state'];
694
			$postcode = '';
695
			$city     = '';
696
		}
697
698
		// Get items
699
		foreach ( $this->get_items( array( 'line_item', 'fee' ) ) as $item_id => $item ) {

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 );