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.
Completed
Push — master ( d7e253...55763c )
by François
03:03
created
src/SURFnet/VPN/Server/Api/Service.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -40,16 +40,25 @@
 block discarded – undo
40 40
         $this->hooks[$type][] = ['name' => $name, 'cb' => $callback];
41 41
     }
42 42
 
43
+    /**
44
+     * @param string $requestMethod
45
+     */
43 46
     public function addRoute($requestMethod, $pathInfo, callable $callback)
44 47
     {
45 48
         $this->routes[$requestMethod][$pathInfo] = $callback;
46 49
     }
47 50
 
51
+    /**
52
+     * @param string $pathInfo
53
+     */
48 54
     public function get($pathInfo, callable $callback)
49 55
     {
50 56
         $this->addRoute('GET', $pathInfo, $callback);
51 57
     }
52 58
 
59
+    /**
60
+     * @param string $pathInfo
61
+     */
53 62
     public function post($pathInfo, callable $callback)
54 63
     {
55 64
         $this->addRoute('POST', $pathInfo, $callback);
Please login to merge, or discard this patch.
web/api.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
     $service->addHook(
57 57
         'before',
58 58
         'auth',
59
-        function (array $serverData) use ($apiConfig) {
59
+        function(array $serverData) use ($apiConfig) {
60 60
             // check if we have valid authentication
61 61
             $apiUsers = $apiConfig->v('api');
62 62
             error_log(var_export($apiUsers, true));
Please login to merge, or discard this patch.
src/SURFnet/VPN/Server/Api/UsersModule.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         // DISABLED
44 44
         $service->get(
45 45
             '/users/disabled',
46
-            function (array $serverData, array $getData, array $postData, array $hookData) {
46
+            function(array $serverData, array $getData, array $postData, array $hookData) {
47 47
                 Utils::requireUser($hookData, ['admin']);
48 48
 
49 49
                 return new ApiResponse('users', $this->users->getDisabled());
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
         $service->get(
54 54
             '/users/is_disabled',
55
-            function (array $serverData, array $getData, array $postData, array $hookData) {
55
+            function(array $serverData, array $getData, array $postData, array $hookData) {
56 56
                 Utils::requireUser($hookData, ['admin']);
57 57
                 $userId = Utils::requireParameter($getData, 'user_id');
58 58
                 InputValidation::userId($userId);
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 
64 64
         $service->post(
65 65
             '/users/disable',
66
-            function (array $serverData, array $getData, array $postData, array $hookData) {
66
+            function(array $serverData, array $getData, array $postData, array $hookData) {
67 67
                 Utils::requireUser($hookData, ['admin']);
68 68
                 $userId = Utils::requireParameter($postData, 'user_id');
69 69
                 InputValidation::userId($userId);
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 
76 76
         $service->post(
77 77
             '/users/enable',
78
-            function (array $serverData, array $getData, array $postData, array $hookData) {
78
+            function(array $serverData, array $getData, array $postData, array $hookData) {
79 79
                 Utils::requireUser($hookData, ['admin']);
80 80
                 $userId = Utils::requireParameter($postData, 'user_id');
81 81
                 InputValidation::userId($userId);
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         // OTP_SECRETS
89 89
         $service->get(
90 90
             '/users/has_otp_secret',
91
-            function (array $serverData, array $getData, array $postData, array $hookData) {
91
+            function(array $serverData, array $getData, array $postData, array $hookData) {
92 92
                 Utils::requireUser($hookData, ['admin', 'portal']);
93 93
                 $userId = Utils::requireParameter($getData, 'user_id');
94 94
                 InputValidation::userId($userId);
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 
100 100
         $service->post(
101 101
             '/users/set_otp_secret',
102
-            function (array $serverData, array $getData, array $postData, array $hookData) {
102
+            function(array $serverData, array $getData, array $postData, array $hookData) {
103 103
                 Utils::requireUser($hookData, ['portal']);
104 104
                 $userId = Utils::requireParameter($postData, 'user_id');
105 105
                 InputValidation::userId($userId);
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 
113 113
         $service->post(
114 114
             '/users/delete_otp_secret',
115
-            function (array $serverData, array $getData, array $postData, array $hookData) {
115
+            function(array $serverData, array $getData, array $postData, array $hookData) {
116 116
                 Utils::requireUser($hookData, ['admin']);
117 117
                 $userId = Utils::requireParameter($postData, 'user_id');
118 118
                 InputValidation::userId($userId);
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
         // VOOT_TOKENS
125 125
         $service->get(
126 126
             '/users/has_voot_token',
127
-            function (array $serverData, array $getData, array $postData, array $hookData) {
127
+            function(array $serverData, array $getData, array $postData, array $hookData) {
128 128
                 Utils::requireUser($hookData, ['portal']);
129 129
                 $userId = Utils::requireParameter($getData, 'user_id');
130 130
                 InputValidation::userId($userId);
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 
136 136
         $service->post(
137 137
             '/users/set_vook_token',
138
-            function (array $serverData, array $getData, array $postData, array $hookData) {
138
+            function(array $serverData, array $getData, array $postData, array $hookData) {
139 139
                 Utils::requireUser($hookData, ['admin']);
140 140
                 $userId = Utils::requireParameter($postData, 'user_id');
141 141
                 InputValidation::userId($userId);
Please login to merge, or discard this patch.
src/SURFnet/VPN/Server/Api/GroupsModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
     {
44 44
         $service->get(
45 45
             '/groups',
46
-            function (array $serverData, array $getData, array $postData, array $hookData) {
46
+            function(array $serverData, array $getData, array $postData, array $hookData) {
47 47
                 Utils::requireUser($hookData, ['portal']);
48 48
                 $userId = Utils::requireParameter($getData, 'user_id');
49 49
                 InputValidation::userId($userId);
Please login to merge, or discard this patch.
src/SURFnet/VPN/Server/Api/InfoModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     {
34 34
         $service->get(
35 35
             '/info/server',
36
-            function (array $serverData, array $getData, array $postData, array $hookData) {
36
+            function(array $serverData, array $getData, array $postData, array $hookData) {
37 37
                 Utils::requireUser($hookData, ['admin', 'portal']);
38 38
 
39 39
                 return $this->getInfo();
Please login to merge, or discard this patch.
src/SURFnet/VPN/Server/Api/LogModule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     {
41 41
         $service->get(
42 42
             '/log',
43
-            function (array $serverData, array $getData, array $postData, array $hookData) {
43
+            function(array $serverData, array $getData, array $postData, array $hookData) {
44 44
                 Utils::requireUser($hookData, ['admin']);
45 45
 
46 46
                 $dateTime = Utils::requireParameter($getData, 'date_time');
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
         $service->get(
58 58
             '/stats',
59
-            function (array $serverData, array $getData, array $postData, array $hookData) {
59
+            function(array $serverData, array $getData, array $postData, array $hookData) {
60 60
                 Utils::requireUser($hookData, ['admin']);
61 61
 
62 62
                 return new ApiResponse('stats', Json::decodeFile(sprintf('%s/stats.json', $this->logPath)));
Please login to merge, or discard this patch.
src/SURFnet/VPN/Server/Api/OpenVpnModule.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     {
34 34
         $service->get(
35 35
             '/openvpn/connections',
36
-            function (array $serverData, array $getData, array $postData, array $hookData) {
36
+            function(array $serverData, array $getData, array $postData, array $hookData) {
37 37
                 Utils::requireUser($hookData, ['admin']);
38 38
 
39 39
                 return new ApiResponse('connections', $this->serverManager->connections());
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
         $service->post(
44 44
             '/openvpn/kill',
45
-            function (array $serverData, array $getData, array $postData, array $hookData) {
45
+            function(array $serverData, array $getData, array $postData, array $hookData) {
46 46
                 Utils::requireUser($hookData, ['admin', 'portal']);
47 47
 
48 48
                 $commonName = Utils::requireParameter($postData, 'common_name');
Please login to merge, or discard this patch.
src/SURFnet/VPN/Server/Api/CommonNamesModule.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     {
38 38
         $service->get(
39 39
             '/common_names/disabled',
40
-            function (array $serverData, array $getData, array $postData, array $hookData) {
40
+            function(array $serverData, array $getData, array $postData, array $hookData) {
41 41
                 Utils::requireUser($hookData, ['admin', 'portal']);
42 42
 
43 43
                 return new ApiResponse('common_names', $this->commonNames->getDisabled());
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 
47 47
         $service->post(
48 48
             '/common_names/disable',
49
-            function (array $serverData, array $getData, array $postData, array $hookData) {
49
+            function(array $serverData, array $getData, array $postData, array $hookData) {
50 50
                 Utils::requireUser($hookData, ['admin', 'portal']);
51 51
                 $commonName = Utils::requireParameter($postData, 'common_name');
52 52
                 InputValidation::commonName($commonName);
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 
59 59
         $service->post(
60 60
             '/common_names/enable',
61
-            function (array $serverData, array $getData, array $postData, array $hookData) {
61
+            function(array $serverData, array $getData, array $postData, array $hookData) {
62 62
                 Utils::requireUser($hookData, ['admin']);
63 63
                 $commonName = Utils::requireParameter($postData, 'common_name');
64 64
                 InputValidation::commonName($commonName);
Please login to merge, or discard this patch.