Code Duplication    Length = 8-8 lines in 3 locations

core/process/queries/QueryManagerMysqlMonocleAlternate.php 1 location

@@ 717-724 (lines=8) @@
714
		return $nests;
715
	}
716
717
	public function getSpawnpointCount($minLatitude, $maxLatitude, $minLongitude, $maxLongitude) {
718
		$req = "SELECT COUNT(*) as total 
719
					FROM spawnpoints 
720
 					WHERE lat >= ".$minLatitude." AND lat < ".$maxLatitude." AND lon >= ".$minLongitude." AND lon < ".$maxLongitude;
721
		$result = $this->mysqli->query($req);
722
		$data = $result->fetch_object();
723
		return $data;
724
	}
725
726
}
727

core/process/queries/QueryManagerMysqlRocketmap.php 1 location

@@ 704-711 (lines=8) @@
701
		return $nests;
702
	}
703
704
	public function getSpawnpointCount($minLatitude, $maxLatitude, $minLongitude, $maxLongitude) {
705
		$req = "SELECT COUNT(*) as total
706
					FROM spawnpoint
707
 					WHERE latitude >= ".$minLatitude." AND latitude < ".$maxLatitude." AND longitude >= ".$minLongitude." AND longitude < ".$maxLongitude;
708
		$result = $this->mysqli->query($req);
709
		$data = $result->fetch_object();
710
		return $data;
711
	}
712
713
}
714

core/process/queries/QueryManagerPostgresqlMonocleAlternate.php 1 location

@@ 721-728 (lines=8) @@
718
		return $nests;
719
	}
720
721
	public function getSpawnpointCount($minLatitude, $maxLatitude, $minLongitude, $maxLongitude) {
722
		$req = "SELECT COUNT(*) as total 
723
					FROM spawnpoints 
724
 					WHERE lat >= ".$minLatitude." AND lat < ".$maxLatitude." AND lon >= ".$minLongitude." AND lon < ".$maxLongitude;
725
		$result = $this->mysqli->query($req);
726
		$data = $result->fetch_object();
727
		return $data;
728
	}
729
730
}
731