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
    {
@@ 334-362 (lines=29) @@
331
        return $stmt->fetchAll(PDO::FETCH_ASSOC);
332
    }
333
334
    public function clientConnect($profileId, $commonName, $ip4, $ip6, $connectedAt)
335
    {
336
        $stmt = $this->db->prepare(
337
            'INSERT INTO connection_log (
338
                profile_id,
339
                common_name,
340
                ip4,
341
                ip6,
342
                connected_at
343
             ) 
344
             VALUES(
345
                :profile_id, 
346
                :common_name,
347
                :ip4,
348
                :ip6,
349
                :connected_at
350
             )'
351
        );
352
353
        $stmt->bindValue(':profile_id', $profileId, PDO::PARAM_STR);
354
        $stmt->bindValue(':common_name', $commonName, PDO::PARAM_STR);
355
        $stmt->bindValue(':ip4', $ip4, PDO::PARAM_STR);
356
        $stmt->bindValue(':ip6', $ip6, PDO::PARAM_STR);
357
        $stmt->bindValue(':connected_at', $connectedAt, PDO::PARAM_INT);
358
359
        $stmt->execute();
360
361
        return 1 === $stmt->rowCount();
362
    }
363
364
    public function clientDisconnect($profileId, $commonName, $ip4, $ip6, $connectedAt, $disconnectedAt, $bytesTransferred)
365
    {