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

src/SURFnet/VPN/Server/Api/ConnectionsModule.php 2 locations

@@ 74-76 (lines=3) @@
71
                $userId = self::getUserId($commonName);
72
73
                // check if user is disabled
74
                if (true === $this->users->isDisabled($userId)) {
75
                    return new ApiResponse('connect', ['ok' => false, 'error' => sprintf('user "%s" disabled', $userId)]);
76
                }
77
78
                // check if the common_name is disabled
79
                if (true === $this->commonNames->isDisabled($commonName)) {
@@ 79-81 (lines=3) @@
76
                }
77
78
                // check if the common_name is disabled
79
                if (true === $this->commonNames->isDisabled($commonName)) {
80
                    return new ApiResponse('connect', ['ok' => false, 'error' => sprintf('common_name "%s" disabled', $commonName)]);
81
                }
82
83
                // if the ACL is enabled, verify that the user is allowed to
84
                // connect