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

tests/Api/ConnectionsModuleTest.php 2 locations

@@ 128-153 (lines=26) @@
125
        );
126
    }
127
128
    public function testConnectNotInAcl()
129
    {
130
        $this->assertSame(
131
            [
132
                'data' => [
133
                    'connect' => [
134
                        'ok' => false,
135
                        'error' => 'user not in ACL',
136
                    ],
137
                ],
138
            ],
139
            $this->makeRequest(
140
                ['vpn-server-node', 'aabbcc'],
141
                'POST',
142
                '/connect',
143
                [],
144
                [
145
                    'profile_id' => 'acl2',
146
                    'common_name' => 'abcd1234',
147
                    'ip4' => '10.10.10.10',
148
                    'ip6' => 'fd00:4242:4242:4242::',
149
                    'connected_at' => 12345678,
150
                ]
151
            )
152
        );
153
    }
154
155
    public function testDisconnect()
156
    {
@@ 155-181 (lines=27) @@
152
        );
153
    }
154
155
    public function testDisconnect()
156
    {
157
        $this->assertSame(
158
            [
159
                'data' => [
160
                    'disconnect' => [
161
                        'ok' => true,
162
                    ],
163
                ],
164
            ],
165
            $this->makeRequest(
166
                ['vpn-server-node', 'aabbcc'],
167
                'POST',
168
                '/disconnect',
169
                [],
170
                [
171
                    'profile_id' => 'internet',
172
                    'common_name' => 'abcd1234',
173
                    'ip4' => '10.10.10.10',
174
                    'ip6' => 'fd00:4242:4242:4242::',
175
                    'connected_at' => 12345678,
176
                    'disconnected_at' => 23456789,
177
                    'bytes_transferred' => 2222222,
178
                ]
179
            )
180
        );
181
    }
182
183
    private function makeRequest(array $basicAuth, $requestMethod, $pathInfo, array $getData = [], array $postData = [])
184
    {