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

src/Route4Me/Route4Me.php 2 locations

@@ 241-250 (lines=10) @@
238
            curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE"); 
239
            curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($query));
240
            break;
241
        case 'PUT':
242
            curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
243
            if (isset($query)) {
244
                curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($query));
245
            }
246
247
            if (isset($body)) {
248
                curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($body)); 
249
            }
250
            break;
251
        case 'POST':
252
            curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); 
253
            if (isset($query)) {
@@ 251-260 (lines=10) @@
248
                curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($body)); 
249
            }
250
            break;
251
        case 'POST':
252
            curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); 
253
            if (isset($query)) {
254
                curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($query)); 
255
            }
256
257
            if (isset($body)) {
258
                curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($body)); 
259
            } 
260
            break;
261
        case 'ADD':
262
            curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($query)); break;
263
        }