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

tests/TestCa.php 2 locations

@@ 25-33 (lines=9) @@
22
     * @return array the certificate, key in array with keys
23
     *               'cert', 'key', 'valid_from' and 'valid_to'
24
     */
25
    public function serverCert($commonName)
26
    {
27
        return [
28
            'certificate' => sprintf('ServerCert for %s', $commonName),
29
            'private_key' => sprintf('ServerCert for %s', $commonName),
30
            'valid_from' => 1234567890,
31
            'valid_to' => 2345678901,
32
        ];
33
    }
34
35
    /**
36
     * Generate a certificate for a VPN client.
@@ 43-51 (lines=9) @@
40
     * @return array the certificate and key in array with keys 'cert', 'key',
41
     *               'valid_from' and 'valid_to'
42
     */
43
    public function clientCert($commonName)
44
    {
45
        return [
46
            'certificate' => sprintf('ClientCert for %s', $commonName),
47
            'private_key' => sprintf('ClientKey for %s', $commonName),
48
            'valid_from' => 1234567890,
49
            'valid_to' => 2345678901,
50
        ];
51
    }
52
53
    /**
54
     * Get the CA root certificate.