Code Duplication    Length = 7-7 lines in 2 locations

system/modules/Geography/objects/SxGeo.php 2 locations

@@ 262-268 (lines=7) @@
259
	public function get($ip){
260
		return $this->max_city ? $this->getCity($ip) : $this->getCountry($ip);
261
	}
262
	public function getCountry($ip){
263
		if($this->max_city) {
264
			$tmp = $this->parseCity($this->get_num($ip));
265
			return $tmp['country']['iso'];
266
		}
267
		else return $this->id2iso[$this->get_num($ip)];
268
	}
269
	public function getCountryId($ip){
270
		if($this->max_city) {
271
			$tmp = $this->parseCity($this->get_num($ip));
@@ 269-275 (lines=7) @@
266
		}
267
		else return $this->id2iso[$this->get_num($ip)];
268
	}
269
	public function getCountryId($ip){
270
		if($this->max_city) {
271
			$tmp = $this->parseCity($this->get_num($ip));
272
			return $tmp['country']['id'];
273
		}
274
		else return $this->get_num($ip);
275
	}
276
	public function getCity($ip){
277
		$seek = $this->get_num($ip);
278
		return $seek ? $this->parseCity($seek) : false;