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

src/Route4Me/Route4Me.php 2 locations

@@ 292-298 (lines=7) @@
289
                    $generatedParams[$field] = $params[$field];
290
                }
291
            }
292
        } elseif (is_object($params)) {
293
            foreach ($allFields as $field) {
294
                if (isset($params->{$field})) {
295
                    $generatedParams[$field] = $params->{$field};
296
                }
297
            }
298
        }
299
300
        return $generatedParams;
301
    }
@@ 338-344 (lines=7) @@
335
                    $generatedPath .= $params[$field].'/';
336
                }
337
            }
338
        } elseif (is_object($params)) {
339
            foreach ($allFields as $field) {
340
                if (isset($params->{$field})) {
341
                    $generatedPath .= $params->{$field}.'/';
342
                }
343
            }
344
        }
345
        
346
        return $generatedPath;
347
    }