Code Duplication    Length = 5-5 lines in 3 locations

core/process/queries/QueryManagerMysqlMonocleAlternate.php 1 location

@@ 516-520 (lines=5) @@
513
514
    public function getHistoryForGym($page, $gym_id)
515
    {
516
        if (isset(self::$config->system->gymhistory_hide_cp_changes) && true === self::$config->system->gymhistory_hide_cp_changes) {
517
            $pageSize = 25;
518
        } else {
519
            $pageSize = 10;
520
        }
521
        $req = "SELECT f.id as gym_id, fs.team as team_id, total_cp, FROM_UNIXTIME(fs.last_modified) as last_modified, last_modified as last_modified_real
522
					FROM fort_sightings fs
523
					LEFT JOIN forts f ON f.id = fs.fort_id

core/process/queries/QueryManagerMysqlRocketmap.php 1 location

@@ 508-512 (lines=5) @@
505
506
    public function getHistoryForGym($page, $gym_id)
507
    {
508
        if (isset(self::$config->system->gymhistory_hide_cp_changes) && true === self::$config->system->gymhistory_hide_cp_changes) {
509
            $pageSize = 25;
510
        } else {
511
            $pageSize = 10;
512
        }
513
        $req = "SELECT gym_id, team_id, total_cp, pokemon_uids, pokemon_count,
514
				CONVERT_TZ(last_modified, '+00:00', '".self::$time_offset."') as last_modified
515
				FROM gymhistory

core/process/queries/QueryManagerPostgresqlMonocleAlternate.php 1 location

@@ 495-499 (lines=5) @@
492
493
    public function getHistoryForGym($page, $gym_id)
494
    {
495
        if (isset(self::$config->system->gymhistory_hide_cp_changes) && true === self::$config->system->gymhistory_hide_cp_changes) {
496
            $pageSize = 25;
497
        } else {
498
            $pageSize = 10;
499
        }
500
        $req = "SELECT f.id as gym_id, fs.team as team_id, total_cp, TO_TIMESTAMP(fs.last_modified) as last_modified, last_modified as last_modified_real
501
					FROM fort_sightings fs
502
					LEFT JOIN forts f ON f.id = fs.fort_id