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 = 13-16 lines in 6 locations

src/Route4Me/Address.php 1 location

@@ 129-142 (lines=14) @@
126
        return Address::fromArray($address);
127
    }
128
	
129
	public function markAddress($params, $body)
130
    {
131
        $result = Route4Me::makeRequst(array(
132
            'url'    => self::$apiUrl,
133
            'method' => 'PUT',
134
            'query'  => array(
135
                'route_id'  => isset($params['route_id']) ? $params['route_id']: null, 
136
                'route_destination_id' => isset($params['route_destination_id']) ? $params['route_destination_id'] : null,
137
            ),
138
            'body'   => $body
139
        ));
140
141
        return $result;
142
    }
143
	
144
	public function markAsDeparted($params)
145
	{

src/Route4Me/Geocoding.php 1 location

@@ 34-49 (lines=16) @@
31
			return $geocoding;
32
		}
33
		
34
		public static function forwardGeocoding($params)
35
		{
36
			//Route4Me::simplePrint($params);
37
			$query = array(
38
	                'format' => isset($params['format']) ? $params['format']: null,
39
	                'addresses' => isset($params['addresses']) ? $params['addresses'] : null,
40
	            );
41
			//var_dump($query);
42
			$fgcoding = Route4Me::makeRequst(array(
43
	            'url'    => self::$apiUrl,
44
	            'method' => 'POST',
45
	            'query'  => $query
46
	        ));
47
			
48
			return $fgcoding;
49
		}
50
		
51
		public static function getStreetData($params)
52
		{

src/Route4Me/Territory.php 1 location

@@ 45-57 (lines=13) @@
42
			return $territoryparameters;
43
		}
44
		
45
		public static function getTerritory($params)
46
	    {
47
	        $territory = Route4Me::makeRequst(array(
48
	            'url'    => self::$apiUrl,
49
	            'method' => 'GET',
50
	            'query'  => array(
51
	                'territory_id' => isset($params['territory_id']) ? $params['territory_id']: null,
52
	                'addresses' => isset($params['addresses']) ? $params['addresses']: null,
53
	            )
54
	        ));
55
	
56
	        return $territory;
57
	    }
58
		
59
		public static function getTerritories($params)
60
	    {

src/Route4Me/OptimizationProblem.php 3 locations

@@ 202-214 (lines=13) @@
199
		return $rAddress;
200
	}
201
	
202
	public function removeAddress($params)
203
	{
204
		$response = Route4Me::makeRequst(array(
205
            'url'    => self::$apiUrl_addr,
206
            'method' => 'DELETE',
207
            'query'  => array(
208
                'optimization_problem_id' => isset($params['optimization_problem_id']) ? $params['optimization_problem_id'] : null,
209
                'route_destination_id' => isset($params['route_destination_id']) ? $params['route_destination_id'] : null,
210
            )
211
        ));
212
		
213
		return $response;
214
	}
215
	
216
	public function removeOptimization($params)
217
	{
@@ 216-230 (lines=15) @@
213
		return $response;
214
	}
215
	
216
	public function removeOptimization($params)
217
	{
218
		$response = Route4Me::makeRequst(array(
219
            'url'    => self::$apiUrl,
220
            'method' => 'DELETE',
221
            'query'  => array(
222
                'redirect' => isset($params['redirect']) ? $params['redirect'] : null,
223
            ),
224
            'body'  => array(
225
				'optimization_problem_ids' => isset($params['optimization_problem_ids']) ? $params['optimization_problem_ids'] : null,
226
			)
227
        ));
228
		
229
		return $response;
230
	}
231
    
232
    public function getHybridOptimization($params)
233
    {
@@ 232-244 (lines=13) @@
229
		return $response;
230
	}
231
    
232
    public function getHybridOptimization($params)
233
    {
234
        $optimize = Route4Me::makeRequst(array(
235
            'url'    => self::$apiHybridUrl,
236
            'method' => 'GET',
237
            'query'  => array(
238
                'target_date_string' => isset($params['target_date_string']) ? $params['target_date_string'] : null,
239
                'timezone_offset_minutes' => isset($params['timezone_offset_minutes']) ? $params['timezone_offset_minutes'] : null
240
            )
241
        ));
242
243
        return $optimize;
244
    }
245
    
246
    Public function addDepotsToHybrid($params)
247
    {