Code Duplication    Length = 6-6 lines in 2 locations

includes/class-wc-customer.php 2 locations

@@ 797-802 (lines=6) @@
794
	 * @param string $city
795
	 * @throws WC_Data_Exception
796
	 */
797
	public function set_shipping_location( $country, $state = '', $postcode = '', $city = '' ) {
798
		$this->data['shipping']['country']  = $country;
799
		$this->data['shipping']['state']    = $state;
800
		$this->data['shipping']['postcode'] = $postcode;
801
		$this->data['shipping']['city']     = $city;
802
	}
803
804
	/**
805
	 * Sets all address info at once.
@@ 812-817 (lines=6) @@
809
	 * @param string $city
810
	 * @throws WC_Data_Exception
811
	 */
812
	public function set_billing_location( $country, $state, $postcode = '', $city = '' ) {
813
		$this->data['billing']['country']  = $country;
814
		$this->data['billing']['state']    = $state;
815
		$this->data['billing']['postcode'] = $postcode;
816
		$this->data['billing']['city']     = $city;
817
	}
818
819
	/**
820
	 * Set billing first name.