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

@@ 220-235 (lines=16) @@
217
        return 1 === $stmt->rowCount();
218
    }
219
220
    public function addCertificate($externalUserId, $commonName, $displayName, $validFrom, $validTo)
221
    {
222
        $userId = $this->getUserId($externalUserId);
223
        $stmt = $this->db->prepare(
224
            'INSERT INTO certificates (common_name, user_id, display_name, valid_from, valid_to) VALUES(:common_name, :user_id, :display_name, :valid_from, :valid_to)'
225
        );
226
        $stmt->bindValue(':common_name', $commonName, PDO::PARAM_STR);
227
        $stmt->bindValue(':user_id', $userId, PDO::PARAM_STR);
228
        $stmt->bindValue(':display_name', $displayName, PDO::PARAM_STR);
229
        $stmt->bindValue(':valid_from', $validFrom, PDO::PARAM_INT);
230
        $stmt->bindValue(':valid_to', $validTo, PDO::PARAM_INT);
231
232
        $stmt->execute();
233
234
        return 1 === $stmt->rowCount();
235
    }
236
237
    public function getCertificates($externalUserId)
238
    {
@@ 340-368 (lines=29) @@
337
        return $stmt->fetchAll(PDO::FETCH_ASSOC);
338
    }
339
340
    public function clientConnect($profileId, $commonName, $ip4, $ip6, $connectedAt)
341
    {
342
        $stmt = $this->db->prepare(
343
            'INSERT INTO connection_log (
344
                profile_id,
345
                common_name,
346
                ip4,
347
                ip6,
348
                connected_at
349
             ) 
350
             VALUES(
351
                :profile_id, 
352
                :common_name,
353
                :ip4,
354
                :ip6,
355
                :connected_at
356
             )'
357
        );
358
359
        $stmt->bindValue(':profile_id', $profileId, PDO::PARAM_STR);
360
        $stmt->bindValue(':common_name', $commonName, PDO::PARAM_STR);
361
        $stmt->bindValue(':ip4', $ip4, PDO::PARAM_STR);
362
        $stmt->bindValue(':ip6', $ip6, PDO::PARAM_STR);
363
        $stmt->bindValue(':connected_at', $connectedAt, PDO::PARAM_INT);
364
365
        $stmt->execute();
366
367
        return 1 === $stmt->rowCount();
368
    }
369
370
    public function clientDisconnect($profileId, $commonName, $ip4, $ip6, $connectedAt, $disconnectedAt, $bytesTransferred)
371
    {