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

src/Route4Me/Route.php 2 locations

@@ 130-144 (lines=15) @@
127
        }
128
    }
129
130
	public function getRoutePoints($routeId, $params)
131
	{
132
		$result = Route4Me::makeRequst(array(
133
            'url'    => self::$apiUrl,
134
            'method' => 'GET',
135
            'query'  => array(
136
            	'api_key' => Route4Me::getApiKey(),
137
                'route_id' => $routeId,
138
                'route_path_output' => isset($params['route_path_output']) ? $params['route_path_output'] : null,
139
                'directions' => isset($params['directions']) ? $params['directions'] : null,
140
            )
141
        ));
142
143
		return $result;
144
	}
145
146
	public function duplicateRoute($route_id)
147
	{
@@ 213-229 (lines=17) @@
210
		return $result;
211
	}
212
	
213
	public function shareRoute($params)
214
	{
215
		$result = Route4Me::makeRequst(array(
216
            'url'    => self::$apiUrlShare,
217
            'method' => 'POST',
218
            'query'  => array(
219
            	'api_key' => Route4Me::getApiKey(),
220
            	'route_id' => isset($params['route_id']) ? $params['route_id'] : null,
221
            ),
222
            'body'  => array(
223
				'recipient_email' => isset($params['recipient_email']) ? $params['recipient_email'] : null,
224
			),
225
			'Content-Type' => 'multipart/form-data'
226
        ));
227
		
228
		return $result;
229
	}
230
	
231
	// Getting random route_id from existing routes between $offset and $offset+$limit
232
	public function getRandomRouteId($offset,$limit)