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 10 locations

src/Route4Me/Address.php 3 locations

@@ 107-121 (lines=15) @@
104
    /*Get notes from the specified route destination
105
     * Returns an address object with notes, if an address exists, otherwise - return null.
106
     */
107
    public static function GetAddressesNotes($noteParams)
108
    {
109
        $address = Route4Me::makeRequst(array(
110
            'url'    => Endpoint::ADDRESS_V4,
111
            'method' => 'GET',
112
            'query'  => array(
113
                'route_id'             => isset($noteParams['route_id']) ? $noteParams['route_id'] : null, 
114
                'route_destination_id' => isset($noteParams['route_destination_id']) 
115
                                             ? $noteParams['route_destination_id'] : null,
116
                'notes'                => 1,
117
            )
118
        ));
119
120
        return $address;
121
    }
122
123
    public function update()
124
    {
@@ 138-151 (lines=14) @@
135
        return Address::fromArray($addressUpdate);
136
    }
137
    
138
    public function markAddress($params, $body)
139
    {
140
        $result = Route4Me::makeRequst(array(
141
            'url'    => Endpoint::ADDRESS_V4,
142
            'method' => 'PUT',
143
            'query'  => array(
144
                'route_id'             => isset($params['route_id']) ? $params['route_id'] : null, 
145
                'route_destination_id' => isset($params['route_destination_id']) ? $params['route_destination_id'] : null,
146
            ),
147
            'body'   => $body
148
        ));
149
150
        return $result;
151
    }
152
    
153
    public function markAsDeparted($params)
154
    {
@@ 262-274 (lines=13) @@
259
        return $result;
260
    }
261
262
    public function createCustomNoteType($params)
263
    {
264
        $result = Route4Me::makeRequst(array(
265
            'url'    => Endpoint::NOTE_CUSTOM_TYPES_V4,
266
            'method' => 'POST',
267
            'body'   => array(
268
                'type'   => isset($params['type']) ? $params['type'] : null,
269
                'values' => isset($params['values']) ? $params['values'] : null
270
            )
271
        ));
272
273
        return $result;
274
    }
275
    
276
    public function removeCustomNoteType($params)
277
    {

src/Route4Me/AddressBookLocation.php 1 location

@@ 96-108 (lines=13) @@
93
        return $result;
94
    }
95
    
96
    public static function getAddressBookLocations($params)
97
    {
98
        $ablocations = Route4Me::makeRequst(array(
99
            'url'    => Endpoint::ADDRESS_BOOK_V4,
100
            'method' => 'GET',
101
            'query'  => array(
102
                'limit'  => isset($params['limit']) ? $params['limit'] : null,
103
                'offset' => isset($params['offset']) ? $params['offset'] : null,
104
            )
105
        ));
106
107
        return $ablocations;
108
    }
109
    
110
    public static function getAddressBookLocationsByIDs($ids)
111
    {

src/Route4Me/Geocoding.php 1 location

@@ 31-46 (lines=16) @@
28
        return $geocoding;
29
    }
30
    
31
    public static function forwardGeocoding($params)
32
    {
33
        $body = array(
34
                'strExportFormat'    => isset($params['strExportFormat']) ? $params['strExportFormat']: null,
35
                'addresses' => isset($params['addresses']) ? $params['addresses'] : null,
36
            );
37
38
        $fgCoding = Route4Me::makeRequst(array(
39
            'url'    => Endpoint::GEOCODER,
40
            'method' => 'POST',
41
            'body'   => $body,
42
            'HTTPHEADER'  => 'Content-Type: multipart/form-data'
43
        ));
44
        
45
        return $fgCoding;
46
    }
47
    
48
    public static function reverseGeocoding($params)
49
    {

src/Route4Me/OptimizationProblem.php 3 locations

@@ 210-224 (lines=15) @@
207
        return $rAddress;
208
    }
209
    
210
    public function removeAddress($params)
211
    {
212
        $response = Route4Me::makeRequst(array(
213
            'url'    => Endpoint::ADDRESS_V4,
214
            'method' => 'DELETE',
215
            'query'  => array(
216
                'optimization_problem_id' => isset($params['optimization_problem_id'])
217
                                               ? $params['optimization_problem_id'] : null,
218
                'route_destination_id'    => isset($params['route_destination_id'])
219
                                               ? $params['route_destination_id'] : null,
220
            )
221
        ));
222
        
223
        return $response;
224
    }
225
    
226
    public function removeOptimization($params)
227
    {
@@ 226-241 (lines=16) @@
223
        return $response;
224
    }
225
    
226
    public function removeOptimization($params)
227
    {
228
        $response = Route4Me::makeRequst(array(
229
            'url'    => Endpoint::OPTIMIZATION_PROBLEM,
230
            'method' => 'DELETE',
231
            'query'  => array(
232
                'redirect' => isset($params['redirect']) ? $params['redirect'] : null,
233
            ),
234
            'body'   => array(
235
                'optimization_problem_ids' => isset($params['optimization_problem_ids'])
236
                                                ? $params['optimization_problem_ids'] : null,
237
            )
238
        ));
239
        
240
        return $response;
241
    }
242
    
243
    public function getHybridOptimization($params)
244
    {
@@ 243-257 (lines=15) @@
240
        return $response;
241
    }
242
    
243
    public function getHybridOptimization($params)
244
    {
245
        $optimize = Route4Me::makeRequst(array(
246
            'url'    => Endpoint::HYBRID_DATE_OPTIMIZATION,
247
            'method' => 'GET',
248
            'query'  => array(
249
                'target_date_string'      => isset($params['target_date_string'])
250
                                               ? $params['target_date_string'] : null,
251
                'timezone_offset_minutes' => isset($params['timezone_offset_minutes'])
252
                                               ? $params['timezone_offset_minutes'] : null
253
            )
254
        ));
255
256
        return $optimize;
257
    }
258
    
259
    Public function addDepotsToHybrid($params)
260
    {

src/Route4Me/Route.php 1 location

@@ 444-457 (lines=14) @@
441
        return $this->optimization_problem_id;
442
    }
443
    
444
    public function GetLastLocation(array $params)
445
    {
446
        $route = Route4Me::makeRequst(array(
447
            'url'    => Endpoint::ROUTE_V4,
448
            'method' => 'GET',
449
            'query'  => array(
450
                'api_key'                 => Route4Me::getApiKey(),
451
                'route_id'                => isset($params['route_id']) ? $params['route_id'] : null,
452
                'device_tracking_history' => isset($params['device_tracking_history']) ? $params['device_tracking_history'] : null
453
            )
454
        ));
455
456
        return Route::fromArray($route);
457
    }
458
    
459
    public function GetTrackingHistoryFromTimeRange(array $params)
460
    {

src/Route4Me/Territory.php 1 location

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