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 = 20-20 lines in 5 locations

tests/Api/ConnectionsModuleTest.php 1 location

@@ 183-202 (lines=20) @@
180
        );
181
    }
182
183
    private function makeRequest(array $basicAuth, $requestMethod, $pathInfo, array $getData = [], array $postData = [])
184
    {
185
        $response = $this->service->run(
186
            new Request(
187
                [
188
                    'SERVER_PORT' => 80,
189
                    'SERVER_NAME' => 'vpn.example',
190
                    'REQUEST_METHOD' => $requestMethod,
191
                    'PATH_INFO' => $pathInfo,
192
                    'REQUEST_URI' => $pathInfo,
193
                    'PHP_AUTH_USER' => $basicAuth[0],
194
                    'PHP_AUTH_PW' => $basicAuth[1],
195
                ],
196
                $getData,
197
                $postData
198
            )
199
        );
200
201
        return json_decode($response->getBody(), true);
202
    }
203
}
204

tests/Api/InfoModuleTest.php 1 location

@@ 98-117 (lines=20) @@
95
        );
96
    }
97
98
    private function makeRequest(array $basicAuth, $requestMethod, $pathInfo, array $getData = [], array $postData = [])
99
    {
100
        $response = $this->service->run(
101
            new Request(
102
                [
103
                    'SERVER_PORT' => 80,
104
                    'SERVER_NAME' => 'vpn.example',
105
                    'REQUEST_METHOD' => $requestMethod,
106
                    'PATH_INFO' => $pathInfo,
107
                    'REQUEST_URI' => $pathInfo,
108
                    'PHP_AUTH_USER' => $basicAuth[0],
109
                    'PHP_AUTH_PW' => $basicAuth[1],
110
                ],
111
                $getData,
112
                $postData
113
            )
114
        );
115
116
        return json_decode($response->getBody(), true);
117
    }
118
}
119

tests/Api/OpenVpnModuleTest.php 1 location

@@ 103-122 (lines=20) @@
100
        );
101
    }
102
103
    private function makeRequest(array $basicAuth, $requestMethod, $pathInfo, array $getData = [], array $postData = [])
104
    {
105
        $response = $this->service->run(
106
            new Request(
107
                [
108
                    'SERVER_PORT' => 80,
109
                    'SERVER_NAME' => 'vpn.example',
110
                    'REQUEST_METHOD' => $requestMethod,
111
                    'PATH_INFO' => $pathInfo,
112
                    'REQUEST_URI' => $pathInfo,
113
                    'PHP_AUTH_USER' => $basicAuth[0],
114
                    'PHP_AUTH_PW' => $basicAuth[1],
115
                ],
116
                $getData,
117
                $postData
118
            )
119
        );
120
121
        return json_decode($response->getBody(), true);
122
    }
123
}
124

tests/Api/UsersModuleTest.php 1 location

@@ 342-361 (lines=20) @@
339
        );
340
    }
341
342
    private function makeRequest(array $basicAuth, $requestMethod, $pathInfo, array $getData = [], array $postData = [])
343
    {
344
        $response = $this->service->run(
345
            new Request(
346
                [
347
                    'SERVER_PORT' => 80,
348
                    'SERVER_NAME' => 'vpn.example',
349
                    'REQUEST_METHOD' => $requestMethod,
350
                    'PATH_INFO' => $pathInfo,
351
                    'REQUEST_URI' => $pathInfo,
352
                    'PHP_AUTH_USER' => $basicAuth[0],
353
                    'PHP_AUTH_PW' => $basicAuth[1],
354
                ],
355
                $getData,
356
                $postData
357
            )
358
        );
359
360
        return json_decode($response->getBody(), true);
361
    }
362
}
363

tests/Api/CertificatesModuleTest.php 1 location

@@ 119-138 (lines=20) @@
116
        );
117
    }
118
119
    private function makeRequest(array $basicAuth, $requestMethod, $pathInfo, array $getData = [], array $postData = [])
120
    {
121
        $response = $this->service->run(
122
            new Request(
123
                [
124
                    'SERVER_PORT' => 80,
125
                    'SERVER_NAME' => 'vpn.example',
126
                    'REQUEST_METHOD' => $requestMethod,
127
                    'PATH_INFO' => $pathInfo,
128
                    'REQUEST_URI' => $pathInfo,
129
                    'PHP_AUTH_USER' => $basicAuth[0],
130
                    'PHP_AUTH_PW' => $basicAuth[1],
131
                ],
132
                $getData,
133
                $postData
134
            )
135
        );
136
137
        return json_decode($response->getBody(), true);
138
    }
139
}
140