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 = 15-17 lines in 3 locations

src/Route4Me/Address.php 2 locations

@@ 126-140 (lines=15) @@
123
        return $result;
124
    }
125
	
126
	public function markAsDeparted($params)
127
	{
128
		$address = Route4Me::makeRequst(array(
129
            'url'    => self::$apiUrDeparted,
130
            'method' => 'GET',
131
            'query'  => array(
132
                'route_id'   => isset($params['route_id']) ? $params['route_id']: null,
133
                'address_id'   => isset($params['address_id']) ? $params['address_id']: null,
134
                'is_departed'   => isset($params['is_departed']) ? $params['is_departed']: null,
135
                'member_id'   => isset($params['member_id']) ? $params['member_id']: null,
136
            ),
137
        ));
138
139
        return $address;
140
	}
141
	
142
	public function markAsVisited($params)
143
	{
@@ 142-156 (lines=15) @@
139
        return $address;
140
	}
141
	
142
	public function markAsVisited($params)
143
	{
144
		$address = Route4Me::makeRequst(array(
145
            'url'    => self::$apiUrVisited,
146
            'method' => 'GET',
147
            'query'  => array(
148
                'route_id'   => isset($params['route_id']) ? $params['route_id']: null,
149
                'address_id'   => isset($params['address_id']) ? $params['address_id']: null,
150
                'is_visited'   => isset($params['is_visited']) ? $params['is_visited']: null,
151
                'member_id'   => isset($params['member_id']) ? $params['member_id']: null,
152
            ),
153
        ));
154
155
        return $address;
156
	}
157
158
    public function delete()
159
    {

src/Route4Me/OptimizationProblem.php 1 location

@@ 245-261 (lines=17) @@
242
        return $optimize;
243
    }
244
    
245
    Public function addDepotsToHybrid($params)
246
    {
247
        $depots = Route4Me::makeRequst(array( 
248
            'url'    => self::$apiHybridDepotUrl,
249
            'method' => 'POST',
250
            'query'  => array(
251
                'optimization_problem_id' => isset($params['optimization_problem_id']) ? $params['optimization_problem_id'] : null,
252
                ),
253
            'body'  => array(
254
                'optimization_problem_id' => isset($params['optimization_problem_id']) ? $params['optimization_problem_id'] : null,
255
                'delete_old_depots' => isset($params['delete_old_depots']) ? $params['delete_old_depots'] : null,
256
                'new_depots' => isset($params['new_depots']) ? $params['new_depots'] : null,
257
            )
258
        ));
259
        
260
        return $depots;
261
    }
262
}
263