Code Duplication    Length = 8-8 lines in 2 locations

core/process/queries/QueryManagerMysqlMonocleAlternate.php 1 location

@@ 700-707 (lines=8) @@
697
		return $nests;
698
	}
699
700
	public function getSpawnpointCount($minLatitude, $maxLatitude, $minLongitude, $maxLongitude) {
701
		$req = "SELECT COUNT(*) as total 
702
					FROM spawnpoints 
703
 					WHERE lat >= ".$minLatitude." AND lat < ".$maxLatitude." AND lon >= ".$minLongitude." AND lon < ".$maxLongitude;
704
		$result = $this->mysqli->query($req);
705
		$data = $result->fetch_object();
706
		return $data;
707
	}
708
709
}
710

core/process/queries/QueryManagerMysqlRocketmap.php 1 location

@@ 687-694 (lines=8) @@
684
		return $nests;
685
	}
686
687
	public function getSpawnpointCount($minLatitude, $maxLatitude, $minLongitude, $maxLongitude) {
688
		$req = "SELECT COUNT(*) as total 
689
					FROM spawnpoint
690
 					WHERE latitude >= ".$minLatitude." AND latitude < ".$maxLatitude." AND longitude >= ".$minLongitude." AND longitude < ".$maxLongitude;
691
		$result = $this->mysqli->query($req);
692
		$data = $result->fetch_object();
693
		return $data;
694
	}
695
696
}
697