Code Duplication    Length = 8-8 lines in 2 locations

core/process/queries/QueryManagerMysqlMonocleAlternate.php 1 location

@@ 771-778 (lines=8) @@
768
        return $nests;
769
    }
770
771
    public function getSpawnpointCount($minLatitude, $maxLatitude, $minLongitude, $maxLongitude)
772
    {
773
        $req = 'SELECT COUNT(*) as total 
774
					FROM spawnpoints 
775
 					WHERE lat >= '.$minLatitude.' AND lat < '.$maxLatitude.' AND lon >= '.$minLongitude.' AND lon < '.$maxLongitude;
776
        $result = $this->mysqli->query($req);
777
        $data = $result->fetch_object();
778
779
        return $data;
780
    }
781
}

core/process/queries/QueryManagerMysqlRocketmap.php 1 location

@@ 804-811 (lines=8) @@
801
        return $nests;
802
    }
803
804
    public function getSpawnpointCount($minLatitude, $maxLatitude, $minLongitude, $maxLongitude)
805
    {
806
        $req = 'SELECT COUNT(*) as total 
807
				FROM spawnpoint
808
				WHERE latitude >= '.$minLatitude.' AND latitude < '.$maxLatitude.' AND longitude >= '.$minLongitude.' AND longitude < '.$maxLongitude;
809
        $result = $this->mysqli->query($req);
810
        $data = $result->fetch_object();
811
812
        return $data;
813
    }
814
}