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 = 16-29 lines in 2 locations

src/Storage.php 2 locations

@@ 214-229 (lines=16) @@
211
        return 1 === $stmt->rowCount();
212
    }
213
214
    public function addCertificate($externalUserId, $commonName, $displayName, $validFrom, $validTo)
215
    {
216
        $userId = $this->getUserId($externalUserId);
217
        $stmt = $this->db->prepare(
218
            'INSERT INTO certificates (common_name, user_id, display_name, valid_from, valid_to) VALUES(:common_name, :user_id, :display_name, :valid_from, :valid_to)'
219
        );
220
        $stmt->bindValue(':common_name', $commonName, PDO::PARAM_STR);
221
        $stmt->bindValue(':user_id', $userId, PDO::PARAM_STR);
222
        $stmt->bindValue(':display_name', $displayName, PDO::PARAM_STR);
223
        $stmt->bindValue(':valid_from', $validFrom, PDO::PARAM_INT);
224
        $stmt->bindValue(':valid_to', $validTo, PDO::PARAM_INT);
225
226
        $stmt->execute();
227
228
        return 1 === $stmt->rowCount();
229
    }
230
231
    public function getCertificates($externalUserId)
232
    {
@@ 321-349 (lines=29) @@
318
        return 1 === intval($stmt->fetchColumn());
319
    }
320
321
    public function clientConnect($profileId, $commonName, $ip4, $ip6, $connectedAt)
322
    {
323
        $stmt = $this->db->prepare(
324
            'INSERT INTO connection_log (
325
                profile_id,
326
                common_name,
327
                ip4,
328
                ip6,
329
                connected_at
330
             ) 
331
             VALUES(
332
                :profile_id, 
333
                :common_name,
334
                :ip4,
335
                :ip6,
336
                :connected_at
337
             )'
338
        );
339
340
        $stmt->bindValue(':profile_id', $profileId, PDO::PARAM_STR);
341
        $stmt->bindValue(':common_name', $commonName, PDO::PARAM_STR);
342
        $stmt->bindValue(':ip4', $ip4, PDO::PARAM_STR);
343
        $stmt->bindValue(':ip6', $ip6, PDO::PARAM_STR);
344
        $stmt->bindValue(':connected_at', $connectedAt, PDO::PARAM_INT);
345
346
        $stmt->execute();
347
348
        return 1 === $stmt->rowCount();
349
    }
350
351
    public function clientDisconnect($profileId, $commonName, $ip4, $ip6, $connectedAt, $disconnectedAt, $bytesTransferred)
352
    {