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

src/fkooman/VPN/Server/Config/ConfigModule.php 1 location

@@ 124-138 (lines=15) @@
121
122
        $service->delete(
123
            '/ccd/disable',
124
            function (Request $request, UserInfoInterface $userInfo) {
125
                $commonName = $request->getUrl()->getQueryParameter('common_name');
126
                Utils::validateCommonName($commonName);
127
128
                // $this->logInfo('enabling cn', array('api_user' => $userInfo->getUserId(), 'cn' => $commonName));
129
130
                $response = new JsonResponse();
131
                $response->setBody(
132
                    array(
133
                        'ok' => $this->staticConfig->enableCommonName($commonName),
134
                    )
135
                );
136
137
                return $response;
138
            }
139
        );
140
141
        $service->get(

src/fkooman/VPN/Server/OpenVpn/OpenVpnModule.php 1 location

@@ 70-80 (lines=11) @@
67
68
        $service->post(
69
            '/kill',
70
            function (Request $request, UserInfoInterface $userInfo) {
71
                $commonName = $request->getPostParameter('common_name');
72
                Utils::validateCommonName($commonName);
73
74
                // $this->logInfo('killing cn', array('api_user' => $userInfo->getUserId(), 'cn' => $commonName));
75
76
                $response = new JsonResponse();
77
                $response->setBody($this->serverManager->kill($commonName));
78
79
                return $response;
80
            }
81
        );
82
    }
83
}