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 = 15-15 lines in 4 locations

tests/SURFnet/VPN/Server/OtpTest.php 4 locations

@@ 33-47 (lines=15) @@
30
    {
31
    }
32
33
    public function testValidOtp()
34
    {
35
        $serverClient = new ServerClient(new TestHttpClient(), 'serverClient');
36
37
        $otp = new Otp(new NullLogger(), $serverClient);
38
        $this->assertTrue(
39
            $otp->verify(
40
                [
41
                    'username' => 'totp',
42
                    'common_name' => 'foo_bar',
43
                    'password' => '123456',
44
                ]
45
            )
46
        );
47
    }
48
49
    public function testNoOtpSecret()
50
    {
@@ 49-63 (lines=15) @@
46
        );
47
    }
48
49
    public function testNoOtpSecret()
50
    {
51
        $serverClient = new ServerClient(new TestHttpClient(), 'serverClient');
52
53
        $otp = new Otp(new NullLogger(), $serverClient);
54
        $this->assertFalse(
55
            $otp->verify(
56
                [
57
                    'username' => 'totp',
58
                    'common_name' => 'bar_foo',
59
                    'password' => '123456',
60
                ]
61
            )
62
        );
63
    }
64
65
    public function testNoInvalidOtpKey()
66
    {
@@ 65-79 (lines=15) @@
62
        );
63
    }
64
65
    public function testNoInvalidOtpKey()
66
    {
67
        $serverClient = new ServerClient(new TestHttpClient(), 'serverClient');
68
69
        $otp = new Otp(new NullLogger(), $serverClient);
70
        $this->assertFalse(
71
            $otp->verify(
72
                [
73
                    'username' => 'totp',
74
                    'common_name' => 'foo_bar',
75
                    'password' => '654321',
76
                ]
77
            )
78
        );
79
    }
80
81
    public function testInvalidOtpPattern()
82
    {
@@ 81-95 (lines=15) @@
78
        );
79
    }
80
81
    public function testInvalidOtpPattern()
82
    {
83
        $serverClient = new ServerClient(new TestHttpClient(), 'serverClient');
84
85
        $otp = new Otp(new NullLogger(), $serverClient);
86
        $this->assertFalse(
87
            $otp->verify(
88
                [
89
                    'username' => 'totp',
90
                    'common_name' => 'foo_bar',
91
                    'password' => '123',
92
                ]
93
            )
94
        );
95
    }
96
}
97