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

src/Route4Me/Route4Me.php 2 locations

@@ 169-173 (lines=5) @@
166
            curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($query)); break;
167
        }
168
169
        if (is_numeric(array_search($method, array('DELETE', 'PUT')))) {
170
            if (isset($body)) {
171
                curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($body)); 
172
            } 
173
        }
174
175
        $result = curl_exec($ch);
176
@@ 255-259 (lines=5) @@
252
            curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($query)); break;
253
        }
254
        
255
        if (is_numeric(array_search($method, array('DELETE', 'PUT', 'POST')))) {
256
            if (isset($body)) {
257
                curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($body)); 
258
            } 
259
        }
260
261
        $result = curl_exec($ch);
262