GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 15-18 lines in 5 locations

src/Storage.php 5 locations

@@ 78-93 (lines=16) @@
75
    /**
76
     * @return array|false
77
     */
78
    public function getUserCertificateInfo($commonName)
79
    {
80
        $stmt = $this->db->prepare(
81
<<< 'SQL'
82
    SELECT 
83
        u.user_id AS user_id, 
84
        u.is_disabled AS user_is_disabled,
85
        c.display_name AS display_name,
86
        c.is_disabled AS certificate_is_disabled 
87
    FROM 
88
        users u, certificates c 
89
    WHERE 
90
        u.user_id = c.user_id AND 
91
        c.common_name = :common_name
92
SQL
93
        );
94
95
        $stmt->bindValue(':common_name', $commonName, PDO::PARAM_STR);
96
        $stmt->execute();
@@ 619-633 (lines=15) @@
616
        return true;
617
    }
618
619
    public function cleanConnectionLog(DateTime $dateTime)
620
    {
621
        $stmt = $this->db->prepare(
622
<<< 'SQL'
623
    DELETE FROM
624
        connection_log
625
    WHERE
626
        connected_at < :date_time
627
    AND
628
        disconnected_at IS NOT NULL
629
SQL
630
        );
631
632
        $stmt->bindValue(':date_time', $dateTime->format('Y-m-d H:i:s'), PDO::PARAM_STR);
633
634
        return $stmt->execute();
635
    }
636
@@ 637-651 (lines=15) @@
634
        return $stmt->execute();
635
    }
636
637
    public function cleanUserMessages(DateTime $dateTime)
638
    {
639
        $stmt = $this->db->prepare(
640
<<< 'SQL'
641
    DELETE FROM
642
        user_messages
643
    WHERE
644
        date_time < :date_time
645
SQL
646
        );
647
648
        $stmt->bindValue(':date_time', $dateTime->format('Y-m-d H:i:s'), PDO::PARAM_STR);
649
650
        return $stmt->execute();
651
    }
652
653
    public function cleanTotpLog(DateTime $dateTime)
654
    {
@@ 653-667 (lines=15) @@
650
        return $stmt->execute();
651
    }
652
653
    public function cleanTotpLog(DateTime $dateTime)
654
    {
655
        $stmt = $this->db->prepare(
656
<<< 'SQL'
657
    DELETE FROM 
658
        totp_log
659
    WHERE 
660
        date_time < :date_time
661
SQL
662
        );
663
664
        $stmt->bindValue(':date_time', $dateTime->format('Y-m-d H:i:s'), PDO::PARAM_STR);
665
666
        return $stmt->execute();
667
    }
668
669
    /**
670
     * @return array
@@ 672-689 (lines=18) @@
669
    /**
670
     * @return array
671
     */
672
    public function systemMessages($type)
673
    {
674
        $stmt = $this->db->prepare(
675
<<< 'SQL'
676
    SELECT
677
        id, message, date_time 
678
    FROM 
679
        system_messages
680
    WHERE
681
        type = :type
682
SQL
683
        );
684
685
        $stmt->bindValue(':type', $type, PDO::PARAM_STR);
686
        $stmt->execute();
687
688
        return $stmt->fetchAll(PDO::FETCH_ASSOC);
689
    }
690
691
    public function addSystemMessage($type, $message)
692
    {