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

@@ 81-96 (lines=16) @@
78
    /**
79
     * @return array|false
80
     */
81
    public function getUserCertificateInfo($commonName)
82
    {
83
        $stmt = $this->db->prepare(
84
<<< 'SQL'
85
    SELECT 
86
        u.user_id AS user_id, 
87
        u.is_disabled AS user_is_disabled,
88
        c.display_name AS display_name,
89
        c.is_disabled AS certificate_is_disabled 
90
    FROM 
91
        users u, certificates c 
92
    WHERE 
93
        u.user_id = c.user_id AND 
94
        c.common_name = :common_name
95
SQL
96
        );
97
98
        $stmt->bindValue(':common_name', $commonName, PDO::PARAM_STR);
99
        $stmt->execute();
@@ 702-716 (lines=15) @@
699
        return true;
700
    }
701
702
    public function cleanConnectionLog(DateTime $dateTime)
703
    {
704
        $stmt = $this->db->prepare(
705
<<< 'SQL'
706
    DELETE FROM
707
        connection_log
708
    WHERE
709
        connected_at < :date_time
710
    AND
711
        disconnected_at IS NOT NULL
712
SQL
713
        );
714
715
        $stmt->bindValue(':date_time', $dateTime->format('Y-m-d H:i:s'), PDO::PARAM_STR);
716
717
        return $stmt->execute();
718
    }
719
@@ 720-734 (lines=15) @@
717
        return $stmt->execute();
718
    }
719
720
    public function cleanUserMessages(DateTime $dateTime)
721
    {
722
        $stmt = $this->db->prepare(
723
<<< 'SQL'
724
    DELETE FROM
725
        user_messages
726
    WHERE
727
        date_time < :date_time
728
SQL
729
        );
730
731
        $stmt->bindValue(':date_time', $dateTime->format('Y-m-d H:i:s'), PDO::PARAM_STR);
732
733
        return $stmt->execute();
734
    }
735
736
    public function cleanTotpLog(DateTime $dateTime)
737
    {
@@ 736-750 (lines=15) @@
733
        return $stmt->execute();
734
    }
735
736
    public function cleanTotpLog(DateTime $dateTime)
737
    {
738
        $stmt = $this->db->prepare(
739
<<< 'SQL'
740
    DELETE FROM 
741
        totp_log
742
    WHERE 
743
        date_time < :date_time
744
SQL
745
        );
746
747
        $stmt->bindValue(':date_time', $dateTime->format('Y-m-d H:i:s'), PDO::PARAM_STR);
748
749
        return $stmt->execute();
750
    }
751
752
    /**
753
     * @return array
@@ 755-772 (lines=18) @@
752
    /**
753
     * @return array
754
     */
755
    public function systemMessages($type)
756
    {
757
        $stmt = $this->db->prepare(
758
<<< 'SQL'
759
    SELECT
760
        id, message, date_time 
761
    FROM 
762
        system_messages
763
    WHERE
764
        type = :type
765
SQL
766
        );
767
768
        $stmt->bindValue(':type', $type, PDO::PARAM_STR);
769
        $stmt->execute();
770
771
        return $stmt->fetchAll(PDO::FETCH_ASSOC);
772
    }
773
774
    public function addSystemMessage($type, $message)
775
    {