Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 2232-2238 (lines=7) @@
2229
        }
2230
2231
        // Default to base
2232
        if ( 'base' === $tax_based_on || empty( $country ) ) {
2233
            $default  = wc_get_base_location();
2234
            $country  = $default['country'];
2235
            $state    = $default['state'];
2236
            $postcode = '';
2237
            $city     = '';
2238
        }
2239
2240
        // Get items
2241
        foreach ( $this->get_items( array( 'line_item', 'fee' ) ) as $item_id => $item ) {

includes/class-wc-ajax.php 1 location

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