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

src/Route4Me/AddressBookLocation.php 1 location

@@ 79-94 (lines=16) @@
76
        return $ablocations;
77
    }
78
    
79
    public static function searchRoutedLocation($params)
80
    {
81
        $result = Route4Me::makeRequst(array(
82
            'url'    => Endpoint::ADDRESS_BOOK_V4,
83
            'method' => 'GET',
84
            'query'  => array(
85
                'display' => isset($params['display']) ? $params['display'] : null,
86
                'query'   => isset($params['query']) ? $params['query'] : null,
87
                'fields'  => isset($params['fields']) ? $params['fields'] : null,
88
                'limit'   => isset($params['limit']) ? $params['limit'] : null,
89
                'offset'  => isset($params['offset']) ? $params['offset'] : null,
90
            )
91
        ));
92
93
        return $result;
94
    }
95
    
96
    public static function getAddressBookLocations($params)
97
    {

src/Route4Me/Route.php 1 location

@@ 457-473 (lines=17) @@
454
        return Route::fromArray($route);
455
    }
456
    
457
    public function GetTrackingHistoryFromTimeRange(array $params)
458
    {
459
        $route = Route4Me::makeRequst(array(
460
            'url'    => Endpoint::GET_DEVICE_LOCATION,
461
            'method' => 'GET',
462
            'query'  => array(
463
                'api_key'     => Route4Me::getApiKey(),
464
                'route_id'    => isset($params['route_id']) ? $params['route_id'] : null,
465
                'format'      => isset($params['format']) ? $params['format'] : null,
466
                'time_period' => isset($params['time_period']) ? $params['time_period'] : null,
467
                'start_date'  => isset($params['start_date']) ? $params['start_date'] : null,
468
                'end_date'    => isset($params['end_date']) ? $params['end_date'] : null
469
                )
470
        ));
471
472
        return $route;
473
    }
474
    
475
    public function GetAssetTracking(array $params)
476
    {