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

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