Code Duplication    Length = 7-7 lines in 2 locations

includes/class-wc-customer.php 2 locations

@@ 702-708 (lines=7) @@
699
	 * Set customer address to match shop base address.
700
	 * @since 2.7.0
701
	 */
702
	public function set_billing_address_to_base() {
703
		$base = wc_get_customer_default_location();
704
		$this->_data['billing_country']  = $base['country'];
705
		$this->_data['billing_state']    = $base['state'];
706
		$this->_data['billing_postcode'] = '';
707
		$this->_data['billing_city']     = '';
708
	}
709
710
	/**
711
	 * Set customer shipping address to base address.
@@ 714-720 (lines=7) @@
711
	 * Set customer shipping address to base address.
712
	 * @since 2.7.0
713
	 */
714
	public function set_shipping_address_to_base() {
715
		$base = wc_get_customer_default_location();
716
		$this->_data['shipping_country']  = $base['country'];
717
		$this->_data['shipping_state']    = $base['state'];
718
		$this->_data['shipping_postcode'] = '';
719
		$this->_data['shipping_city']     = '';
720
	}
721
722
	/**
723
	 * Sets all shipping info at once.