Code Duplication    Length = 7-7 lines in 2 locations

includes/class-wc-customer.php 2 locations

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