Code Duplication    Length = 7-7 lines in 2 locations

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

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

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