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 = 12-13 lines in 15 locations

src/Route4Me/ActivityParameters.php 2 locations

@@ 45-56 (lines=12) @@
42
        return $activityparameters;
43
    }
44
    
45
    public static function getActivities($params)
46
    {
47
        $allQueryFields = array('route_id', 'team', 'limit', 'offset', 'start');
48
        
49
        $activity = Route4Me::makeRequst(array(
50
            'url'    => Endpoint::GET_ACTIVITIES,
51
            'method' => 'GET',
52
            'query'  => Route4Me::generateRequestParameters($allQueryFields, $params)
53
        ));
54
55
        return $activity;
56
    }
57
58
    public static function searcActivities($params)
59
    {
@@ 58-69 (lines=12) @@
55
        return $activity;
56
    }
57
58
    public static function searcActivities($params)
59
    {
60
        $allQueryFields = array('route_id', 'limit', 'offset', 'activity_type');
61
        
62
        $activity = Route4Me::makeRequst(array(
63
            'url'    => Endpoint::GET_ACTIVITIES,
64
            'method' => 'GET',
65
            'query'  => Route4Me::generateRequestParameters($allQueryFields, $params)
66
        ));
67
68
        return $activity;
69
    }
70
    
71
    public static function sendUserMessage($params)
72
    {

src/Route4Me/Address.php 3 locations

@@ 140-151 (lines=12) @@
137
        return $result;
138
    }
139
    
140
    public function markAsDeparted($params)
141
    {
142
        $allQueryFields = array('route_id', 'address_id', 'is_departed', 'member_id');
143
        
144
        $address = Route4Me::makeRequst(array(
145
            'url'    => Endpoint::MARK_ADDRESS_DEPARTED,
146
            'method' => 'PUT',
147
            'query'  => Route4Me::generateRequestParameters($allQueryFields, $params)
148
        ));
149
    
150
        return $address;
151
    }
152
    
153
    public function markAsVisited($params)
154
    {
@@ 153-164 (lines=12) @@
150
        return $address;
151
    }
152
    
153
    public function markAsVisited($params)
154
    {
155
        $allQueryFields = array('route_id', 'address_id', 'is_visited', 'member_id');
156
        
157
        $address = Route4Me::makeRequst(array(
158
            'url'    => Endpoint::UPDATE_ADDRESS_VISITED,
159
            'method' => 'PUT',
160
            'query'  => Route4Me::generateRequestParameters($allQueryFields, $params)
161
        ));
162
    
163
        return $address;
164
    }
165
166
    public function deleteAddress()
167
    {
@@ 180-192 (lines=13) @@
177
        return (bool)$address['deleted'];
178
    }
179
    
180
    public function moveDestinationToRoute($params)
181
    {
182
        $allBodyFields = array('to_route_id', 'route_destination_id', 'after_destination_id');
183
        
184
        $result = Route4Me::makeRequst(array(
185
            'url'    => Endpoint::MOVE_ROUTE_DESTINATION,
186
            'method' => 'POST',
187
            'body'   => Route4Me::generateRequestParameters($allBodyFields, $params),
188
            'HTTPHEADER'  => 'Content-Type: multipart/form-data'
189
        ));
190
191
        return $result;
192
    }
193
    
194
    public function AddAddressNote($params)
195
    {

src/Route4Me/AddressBookLocation.php 2 locations

@@ 81-92 (lines=12) @@
78
        return $ablocations;
79
    }
80
    
81
    public static function searchAddressBookLocations($params)
82
    {
83
        $allQueryFields = array('display', 'query', 'fields', 'limit', 'offset');
84
        
85
        $result = Route4Me::makeRequst(array(
86
            'url'    => Endpoint::ADDRESS_BOOK_V4,
87
            'method' => 'GET',
88
            'query'  => Route4Me::generateRequestParameters($allQueryFields, $params)
89
        ));
90
91
        return $result;
92
    }
93
    
94
    public static function getAddressBookLocations($params)
95
    {
@@ 94-105 (lines=12) @@
91
        return $result;
92
    }
93
    
94
    public static function getAddressBookLocations($params)
95
    {
96
        $allQueryFields = array('limit', 'offset', 'address_id');
97
        
98
        $ablocations = Route4Me::makeRequst(array(
99
            'url'    => Endpoint::ADDRESS_BOOK_V4,
100
            'method' => 'GET',
101
            'query'  => Route4Me::generateRequestParameters($allQueryFields, $params)
102
        ));
103
104
        return $ablocations;
105
    }
106
    
107
    public static function getRandomAddressBookLocation($params)
108
    {

src/Route4Me/Member.php 2 locations

@@ 230-242 (lines=13) @@
227
        return $response;
228
    }
229
    
230
    public static function memberAuthentication($params)
231
    {
232
        $allBodyFields = array('strEmail', 'strPassword', 'format');
233
        
234
        $response = Route4Me::makeRequst(array(
235
            'url'    => Endpoint::AUTHENTICATE,
236
            'method' => 'POST',
237
            'body'   => Route4Me::generateRequestParameters($allBodyFields, $params),
238
            'HTTPHEADER'  => 'Content-Type: multipart/form-data'
239
        ));
240
        
241
        return $response;
242
    }
243
    
244
    public static function webinarRegistration($params)
245
    {
@@ 244-256 (lines=13) @@
241
        return $response;
242
    }
243
    
244
    public static function webinarRegistration($params)
245
    {
246
        $allBodyFields = array('email_address', 'first_name', 'last_name', 'phone_number', 
247
        'company_name', 'member_id', 'webinar_date');
248
        
249
        $response = Route4Me::makeRequst(array(
250
            'url'    => Endpoint::WEBINAR_REGISTER,
251
            'method' => 'POST',
252
            'body'   => Route4Me::generateRequestParameters($allBodyFields, $params)
253
        ));
254
        
255
        return $response;
256
    }
257
    
258
    public static function purchaseUserLicense($params)
259
    {

src/Route4Me/Order.php 2 locations

@@ 125-136 (lines=12) @@
122
        return $response;
123
    }
124
    
125
    public static function getOrder($params)
126
    {
127
        $allQueryFields = array('order_id', 'fields', 'day_added_YYMMDD', 'scheduled_for_YYMMDD', 'query', 'offset', 'limit');
128
129
        $response = Route4Me::makeRequst(array(
130
            'url'    => Endpoint::ORDER_V4,
131
            'method' => 'GET',
132
            'query'  => Route4Me::generateRequestParameters($allQueryFields, $params)
133
        ));
134
135
        return $response;
136
    }
137
    
138
    public static function getOrders($params)
139
    {
@@ 216-227 (lines=12) @@
213
        return $response;
214
    }
215
    
216
    public static function searchOrder($params)
217
    {
218
        $allQueryFields = array('fields', 'day_added_YYMMDD', 'scheduled_for_YYMMDD', 'query', 'offset', 'limit' );
219
        
220
        $response = Route4Me::makeRequst(array(
221
            'url'    => Endpoint::ORDER_V4,
222
            'method' => 'GET',
223
            'query'  => Route4Me::generateRequestParameters($allQueryFields, $params)
224
        ));
225
226
        return $response;
227
    }
228
    
229
    public static function validateCoordinate($coord)
230
    {

src/Route4Me/Route.php 3 locations

@@ 117-128 (lines=12) @@
114
        }
115
    }
116
117
    public function getRoutePoints($params)
118
    {
119
        $allQueryFields = array('route_id', 'route_path_output', 'compress_path_points', 'directions');
120
        
121
        $result = Route4Me::makeRequst(array(
122
            'url'    => Endpoint::ROUTE_V4,
123
            'method' => 'GET',
124
            'query'  => Route4Me::generateRequestParameters($allQueryFields, $params)
125
        ));
126
127
        return $result;
128
    }
129
130
    public function duplicateRoute($route_id)
131
    {
@@ 172-184 (lines=13) @@
169
        return $result;
170
    }
171
172
    public function mergeRoutes($params)
173
    {
174
        $allBodyFields = array('route_ids', 'depot_address', 'remove_origin', 'depot_lat',  'depot_lng');
175
        
176
        $result = Route4Me::makeRequst(array(
177
            'url'    => Endpoint::ROUTES_MERGE,
178
            'method' => 'POST',
179
            'body'   => Route4Me::generateRequestParameters($allBodyFields, $params),
180
            'HTTPHEADER'  => 'Content-Type: multipart/form-data'
181
        ));
182
        
183
        return $result;
184
    }
185
    
186
    public function shareRoute($params)
187
    {
@@ 392-403 (lines=12) @@
389
        return Route::fromArray($route);
390
    }
391
    
392
    public function GetTrackingHistoryFromTimeRange(array $params)
393
    {
394
        $allQueryFields = array('route_id', 'format', 'time_period', 'start_date', 'end_date');
395
        
396
        $route = Route4Me::makeRequst(array(
397
            'url'    => Endpoint::GET_DEVICE_LOCATION,
398
            'method' => 'GET',
399
            'query'  => Route4Me::generateRequestParameters($allQueryFields, $params)
400
        ));
401
402
        return $route;
403
    }
404
    
405
    public function GetAssetTracking(array $params)
406
    {

src/Route4Me/Territory.php 1 location

@@ 67-78 (lines=12) @@
64
		return $response;
65
	}
66
67
	public static function addTerritory($params)
68
	{
69
	    $allBodyFields = array('territory_name', 'member_id', 'territory_color', 'territory');
70
        
71
		$response = Route4Me::makeRequst(array(
72
			'url'    => Endpoint::TERRITORY_V4,
73
			'method' => 'POST',
74
			'body'  => Route4Me::generateRequestParameters($allBodyFields, $params)
75
		));
76
77
		return $response;
78
	}
79
	
80
	public function deleteTerritory($territory_id)
81
	{