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 = 12-13 lines in 5 locations

src/Storage.php 5 locations

@@ 124-136 (lines=13) @@
121
        return $stmt->fetchColumn();
122
    }
123
124
    public function setVootToken($externalUserId, $vootToken)
125
    {
126
        $userId = $this->getInternalUserId($externalUserId);
127
        $stmt = $this->db->prepare(
128
            'INSERT INTO voot_tokens (user_id, voot_token) VALUES(:user_id, :voot_token)'
129
        );
130
        $stmt->bindValue(':user_id', $userId, PDO::PARAM_STR);
131
        $stmt->bindValue(':voot_token', $vootToken, PDO::PARAM_STR);
132
133
        $stmt->execute();
134
135
        return 1 === $stmt->rowCount();
136
    }
137
138
    public function hasVootToken($externalUserId)
139
    {
@@ 138-150 (lines=13) @@
135
        return 1 === $stmt->rowCount();
136
    }
137
138
    public function hasVootToken($externalUserId)
139
    {
140
        $userId = $this->getInternalUserId($externalUserId);
141
        $stmt = $this->db->prepare(
142
            'SELECT COUNT(*)
143
             FROM voot_tokens
144
             WHERE user_id = :user_id'
145
        );
146
        $stmt->bindValue(':user_id', $userId, PDO::PARAM_STR);
147
        $stmt->execute();
148
149
        return 1 === intval($stmt->fetchColumn());
150
    }
151
152
    public function deleteVootToken($externalUserId)
153
    {
@@ 152-163 (lines=12) @@
149
        return 1 === intval($stmt->fetchColumn());
150
    }
151
152
    public function deleteVootToken($externalUserId)
153
    {
154
        $userId = $this->getInternalUserId($externalUserId);
155
        $stmt = $this->db->prepare(
156
            'DELETE FROM voot_tokens WHERE user_id = :user_id'
157
        );
158
        $stmt->bindValue(':user_id', $userId, PDO::PARAM_STR);
159
160
        $stmt->execute();
161
162
        return 1 === $stmt->rowCount();
163
    }
164
165
    public function hasTotpSecret($externalUserId)
166
    {
@@ 165-177 (lines=13) @@
162
        return 1 === $stmt->rowCount();
163
    }
164
165
    public function hasTotpSecret($externalUserId)
166
    {
167
        $userId = $this->getInternalUserId($externalUserId);
168
        $stmt = $this->db->prepare(
169
            'SELECT COUNT(*)
170
             FROM totp_secrets
171
             WHERE user_id = :user_id'
172
        );
173
        $stmt->bindValue(':user_id', $userId, PDO::PARAM_STR);
174
        $stmt->execute();
175
176
        return 1 === intval($stmt->fetchColumn());
177
    }
178
179
    public function getTotpSecret($externalUserId)
180
    {
@@ 212-223 (lines=12) @@
209
        return true;
210
    }
211
212
    public function deleteTotpSecret($externalUserId)
213
    {
214
        $userId = $this->getInternalUserId($externalUserId);
215
        $stmt = $this->db->prepare(
216
            'DELETE FROM totp_secrets WHERE user_id = :user_id'
217
        );
218
        $stmt->bindValue(':user_id', $userId, PDO::PARAM_STR);
219
220
        $stmt->execute();
221
222
        return 1 === $stmt->rowCount();
223
    }
224
225
    public function deleteUser($externalUserId)
226
    {