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

@@ 237-252 (lines=16) @@
234
        return 1 === $stmt->rowCount();
235
    }
236
237
    public function addCertificate($externalUserId, $commonName, $displayName, $validFrom, $validTo)
238
    {
239
        $userId = $this->getUserId($externalUserId);
240
        $stmt = $this->db->prepare(
241
            'INSERT INTO certificates (common_name, user_id, display_name, valid_from, valid_to) VALUES(:common_name, :user_id, :display_name, :valid_from, :valid_to)'
242
        );
243
        $stmt->bindValue(':common_name', $commonName, PDO::PARAM_STR);
244
        $stmt->bindValue(':user_id', $userId, PDO::PARAM_STR);
245
        $stmt->bindValue(':display_name', $displayName, PDO::PARAM_STR);
246
        $stmt->bindValue(':valid_from', $validFrom, PDO::PARAM_INT);
247
        $stmt->bindValue(':valid_to', $validTo, PDO::PARAM_INT);
248
249
        $stmt->execute();
250
251
        return 1 === $stmt->rowCount();
252
    }
253
254
    public function getCertificates($externalUserId)
255
    {
@@ 376-404 (lines=29) @@
373
        return $stmt->fetchAll(PDO::FETCH_ASSOC);
374
    }
375
376
    public function clientConnect($profileId, $commonName, $ip4, $ip6, $connectedAt)
377
    {
378
        $stmt = $this->db->prepare(
379
            'INSERT INTO connection_log (
380
                profile_id,
381
                common_name,
382
                ip4,
383
                ip6,
384
                connected_at
385
             ) 
386
             VALUES(
387
                :profile_id, 
388
                :common_name,
389
                :ip4,
390
                :ip6,
391
                :connected_at
392
             )'
393
        );
394
395
        $stmt->bindValue(':profile_id', $profileId, PDO::PARAM_STR);
396
        $stmt->bindValue(':common_name', $commonName, PDO::PARAM_STR);
397
        $stmt->bindValue(':ip4', $ip4, PDO::PARAM_STR);
398
        $stmt->bindValue(':ip6', $ip6, PDO::PARAM_STR);
399
        $stmt->bindValue(':connected_at', $connectedAt, PDO::PARAM_INT);
400
401
        $stmt->execute();
402
403
        return 1 === $stmt->rowCount();
404
    }
405
406
    public function clientDisconnect($profileId, $commonName, $ip4, $ip6, $connectedAt, $disconnectedAt, $bytesTransferred)
407
    {