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

tests/Api/ConnectionsModuleTest.php 2 locations

@@ 114-135 (lines=22) @@
111
        );
112
    }
113
114
    public function testConnectNotInAcl()
115
    {
116
        $this->assertSame(
117
            [
118
                'ok' => false,
119
                'error' => 'user not in ACL',
120
            ],
121
            $this->makeRequest(
122
                ['vpn-server-node', 'aabbcc'],
123
                'POST',
124
                'connect',
125
                [],
126
                [
127
                    'profile_id' => 'acl2',
128
                    'common_name' => '12345678901234567890123456789012',
129
                    'ip4' => '10.10.10.10',
130
                    'ip6' => 'fd00:4242:4242:4242::',
131
                    'connected_at' => 12345678,
132
                ]
133
            )
134
        );
135
    }
136
137
    public function testDisconnect()
138
    {
@@ 137-156 (lines=20) @@
134
        );
135
    }
136
137
    public function testDisconnect()
138
    {
139
        $this->assertTrue(
140
            $this->makeRequest(
141
                ['vpn-server-node', 'aabbcc'],
142
                'POST',
143
                'disconnect',
144
                [],
145
                [
146
                    'profile_id' => 'internet',
147
                    'common_name' => '12345678901234567890123456789012',
148
                    'ip4' => '10.10.10.10',
149
                    'ip6' => 'fd00:4242:4242:4242::',
150
                    'connected_at' => 12345678,
151
                    'disconnected_at' => 23456789,
152
                    'bytes_transferred' => 2222222,
153
                ]
154
            )
155
        );
156
    }
157
158
    private function makeRequest(array $basicAuth, $requestMethod, $pathInfo, array $getData = [], array $postData = [])
159
    {