Code Duplication    Length = 7-7 lines in 2 locations

includes/class-wc-customer.php 2 locations

@@ 584-590 (lines=7) @@
581
	 * Set customer address to match shop base address.
582
	 * @since 2.7.0
583
	 */
584
	public function set_billing_address_to_base() {
585
		$base = wc_get_customer_default_location();
586
		$this->_data['billing_country']  = $base['country'];
587
		$this->_data['billing_state']    = $base['state'];
588
		$this->_data['billing_postcode'] = '';
589
		$this->_data['billing_city']     = '';
590
	}
591
592
	/**
593
	 * Set customer shipping address to base address.
@@ 596-602 (lines=7) @@
593
	 * Set customer shipping address to base address.
594
	 * @since 2.7.0
595
	 */
596
	public function set_shipping_address_to_base() {
597
		$base = wc_get_customer_default_location();
598
		$this->_data['shipping_country']  = $base['country'];
599
		$this->_data['shipping_state']    = $base['state'];
600
		$this->_data['shipping_postcode'] = '';
601
		$this->_data['shipping_city']     = '';
602
	}
603
604
	/**
605
	 * Sets all shipping info at once.