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

src/Route4Me/Route4Me.php 5 locations

@@ 138-145 (lines=8) @@
135
        }
136
137
        switch($method) {
138
        case 'DELETE':
139
            curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE"); 
140
141
            if (isset($body)) {
142
                
143
                curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($body)); 
144
            }
145
            break;
146
        case 'DELETEARRAY':
147
            curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE"); 
148
            curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($query));
@@ 146-149 (lines=4) @@
143
                curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($body)); 
144
            }
145
            break;
146
        case 'DELETEARRAY':
147
            curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE"); 
148
            curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($query));
149
            break;
150
        case 'PUT':
151
            curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
152
@@ 150-156 (lines=7) @@
147
            curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE"); 
148
            curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($query));
149
            break;
150
        case 'PUT':
151
            curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PUT");
152
153
            if (isset($body)) {
154
                curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($body)); 
155
            }
156
            break;
157
        case 'POST':
158
           if (isset($body)) {
159
                $bodyData = json_encode($body);
@@ 230-236 (lines=7) @@
227
        curl_setopt_array($ch, $curlOpts);
228
        
229
        switch($method) {
230
        case 'DELETE':
231
            curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE"); 
232
233
            if (isset($body)) {
234
                curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($body)); 
235
            }
236
            break;
237
        case 'DELETEARRAY':
238
            curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE"); 
239
            curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($query));
@@ 237-240 (lines=4) @@
234
                curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($body)); 
235
            }
236
            break;
237
        case 'DELETEARRAY':
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)) {