Code Duplication    Length = 3-6 lines in 2 locations

includes/class-wc-geo-ip.php 2 locations

@@ 1664-1666 (lines=3) @@
1661
	 */
1662
	public function geoip_country_code_by_addr_v6( $addr ) {
1663
		$country_id = $this->geoip_country_id_by_addr_v6( $addr );
1664
		if ( $country_id !== false && isset( $this->GEOIP_COUNTRY_CODES[ $country_id ] ) ) {
1665
			return $this->GEOIP_COUNTRY_CODES[ $country_id ];
1666
		}
1667
1668
		return false;
1669
	}
@@ 1683-1688 (lines=6) @@
1680
			if ( $record !== false ) {
1681
				return $record->country_code;
1682
			}
1683
		} else {
1684
			$country_id = $this->geoip_country_id_by_addr( $addr );
1685
			if ( $country_id !== false && isset( $this->GEOIP_COUNTRY_CODES[ $country_id ] ) ) {
1686
				return $this->GEOIP_COUNTRY_CODES[ $country_id ];
1687
			}
1688
		}
1689
1690
		return false;
1691
	}