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

src/Route4Me/Address.php 1 location

@@ 156-172 (lines=17) @@
153
        return $address;
154
    }
155
    
156
    public function markAsVisited($params)
157
    {
158
        $address = Route4Me::makeRequst(array(
159
            'url'    => Endpoint::UPDATE_ADDRESS_VISITED,
160
            'method' => 'GET',
161
            'query'  => array(
162
                'route_id'   => isset($params['route_id']) ? $params['route_id'] : null,
163
                'address_id' => isset($params['address_id']) ? $params['address_id'] : null,
164
                'member_id'  => isset($params['member_id']) ? $params['member_id'] : null,
165
            ),
166
            'body'  =>  array(
167
                'is_visited' => isset($params['is_visited']) ? $params['is_visited'] : null
168
            )
169
        ));
170
    
171
        return $address;
172
    }
173
174
    public function delete()
175
    {

src/Route4Me/OptimizationProblem.php 1 location

@@ 262-280 (lines=19) @@
259
        return $optimize;
260
    }
261
    
262
    Public function addDepotsToHybrid($params)
263
    {
264
        $depots = Route4Me::makeRequst(array( 
265
            'url'    => Endpoint::CHANGE_HYBRID_OPTIMIZATION_DEPOT,
266
            'method' => 'POST',
267
            'query'  => array(
268
                'optimization_problem_id' => isset($params['optimization_problem_id'])
269
                                               ? $params['optimization_problem_id'] : null,
270
                ),
271
            'body'   => array(
272
                'optimization_problem_id' => isset($params['optimization_problem_id'])
273
                                               ? $params['optimization_problem_id'] : null,
274
                'delete_old_depots'       => isset($params['delete_old_depots']) ? $params['delete_old_depots'] : null,
275
                'new_depots'              => isset($params['new_depots']) ? $params['new_depots'] : null,
276
            )
277
        ));
278
        
279
        return $depots;
280
    }
281
}
282