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-18 lines in 4 locations

src/Route4Me/Route.php 4 locations

@@ 124-139 (lines=16) @@
121
        }
122
    }
123
124
    public function getRoutePoints($routeId, $params)
125
    {
126
        $result = Route4Me::makeRequst(array(
127
            'url'    => Endpoint::ROUTE_V4,
128
            'method' => 'GET',
129
            'query'  => array(
130
                'api_key'           => Route4Me::getApiKey(),
131
                'route_id'          => $routeId,
132
                'route_path_output' => isset($params['route_path_output']) ? $params['route_path_output'] : null,
133
                'compress_path_points' => isset($params['compress_path_points']) ? $params['compress_path_points'] : null,
134
                'directions'        => isset($params['directions']) ? $params['directions'] : null,
135
            )
136
        ));
137
138
        return $result;
139
    }
140
141
    public function duplicateRoute($route_id)
142
    {
@@ 156-172 (lines=17) @@
153
        return $result;
154
    }
155
    
156
    public function resequenceRoute($params)
157
    {
158
        $result = Route4Me::makeRequst(array(
159
            'url'    => Endpoint::ROUTE_V4,
160
            'method' => 'PUT',
161
            'query'  => array(
162
                'api_key'              => Route4Me::getApiKey(),
163
                'route_id'             => isset($params['route_id']) ? $params['route_id'] : null,
164
                'route_destination_id' => isset($params['route_destination_id']) ? $params['route_destination_id'] : null,
165
            ),
166
            'body'   => array(
167
                'addresses' => isset($params['addresses']) ? $params['addresses'] : null,
168
            )
169
        ));
170
        
171
        return $result;
172
    }
173
    
174
    public function resequenceAllAddresses($params)
175
    {
@@ 211-228 (lines=18) @@
208
        return $result;
209
    }
210
    
211
    public function shareRoute($params)
212
    {
213
        $result = Route4Me::makeRequst(array(
214
            'url'    => Endpoint::ROUTE_SHARE,
215
            'method' => 'POST',
216
            'query'  => array(
217
                'api_key'         => Route4Me::getApiKey(),
218
                'route_id'        => isset($params['route_id']) ? $params['route_id'] : null,
219
                'response_format' => isset($params['response_format']) ? $params['response_format'] : null,
220
            ),
221
            'body'  => array(
222
                'recipient_email' => isset($params['recipient_email']) ? $params['recipient_email'] : null,
223
            ),
224
            'HTTPHEADER'  => 'Content-Type: multipart/form-data'
225
        ));
226
        
227
        return $result;
228
    }
229
    
230
    // Returns random route_id from existing routes between $offset and $offset+$limit
231
    public function getRandomRouteId($offset, $limit)
@@ 336-352 (lines=17) @@
333
        return Route::fromArray($route);
334
    }
335
    
336
    public function insertAddressOptimalPosition(array $params)
337
    {
338
        $route = Route4Me::makeRequst(array(
339
            'url'    => Endpoint::ROUTE_V4,
340
            'method' => 'PUT',
341
            'query'  => array(
342
                'api_key'  => Route4Me::getApiKey(),
343
                'route_id' => isset($params['route_id']) ? $params['route_id'] : null,
344
            ),
345
            'body'   => array(
346
                'addresses'        => isset($params['addresses']) ? $params['addresses'] : null,
347
                'optimal_position' => isset($params['optimal_position']) ? $params['optimal_position'] : null,
348
            )
349
        ));
350
351
        return Route::fromArray($route);
352
    }
353
    
354
    public function addNoteFile($params)
355
    {