Code Duplication    Length = 7-7 lines in 2 locations

includes/class-wc-customer.php 2 locations

@@ 681-687 (lines=7) @@
678
	 * Set customer address to match shop base address.
679
	 * @since 2.7.0
680
	 */
681
	public function set_billing_address_to_base() {
682
		$base = wc_get_customer_default_location();
683
		$this->_data['billing_country']  = $base['country'];
684
		$this->_data['billing_state']    = $base['state'];
685
		$this->_data['billing_postcode'] = '';
686
		$this->_data['billing_city']     = '';
687
	}
688
689
	/**
690
	 * Set customer shipping address to base address.
@@ 693-699 (lines=7) @@
690
	 * Set customer shipping address to base address.
691
	 * @since 2.7.0
692
	 */
693
	public function set_shipping_address_to_base() {
694
		$base = wc_get_customer_default_location();
695
		$this->_data['shipping_country']  = $base['country'];
696
		$this->_data['shipping_state']    = $base['state'];
697
		$this->_data['shipping_postcode'] = '';
698
		$this->_data['shipping_city']     = '';
699
	}
700
701
	/**
702
	 * Sets all shipping info at once.