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

src/SURFnet/VPN/Node/OpenVpn.php 2 locations

@@ 259-269 (lines=11) @@
256
        $processCount = $profileConfig->v('processCount');
257
        if ($profileConfig->v('dedicatedNode')) {
258
            // we listen on all IPs, both IPv4 and IPv6
259
            if (1 === $processCount || $i !== $processCount - 1) {
260
                // UDP
261
                $proto = 'udp6';
262
                $port = 1194 + $i;
263
                $local = '::';
264
            } else {
265
                // TCP
266
                $proto = 'tcp6-server';
267
                $port = 443;
268
                $local = '::';
269
            }
270
        } else {
271
            // not dedicated, we share with SNI Proxy, we listen on IPv4 only
272
            if (1 === $processCount || $i !== $processCount - 1) {
@@ 270-283 (lines=14) @@
267
                $port = 443;
268
                $local = '::';
269
            }
270
        } else {
271
            // not dedicated, we share with SNI Proxy, we listen on IPv4 only
272
            if (1 === $processCount || $i !== $processCount - 1) {
273
                // UDP
274
                $proto = 'udp';
275
                $port = 1194 + $i;
276
                $local = $profileConfig->v('listen');
277
            } else {
278
                // TCP
279
                $proto = 'tcp-server';
280
                $port = 1194;
281
                $local = $managementIp;
282
            }
283
        }
284
285
        return [$proto, $port, $local];
286
    }