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

config/func.inc.php 2 locations

@@ 316-331 (lines=16) @@
313
 * @see getUrl()
314
 * @return string
315
 */
316
function getNotEncodedUrl()
317
{
318
	$num_args = func_num_args();
319
	$args_list = func_get_args();
320
321
	if($num_args)
322
	{
323
		$url = Context::getUrl($num_args, $args_list, NULL, FALSE);
324
	}
325
	else
326
	{
327
		$url = Context::getRequestUri();
328
	}
329
330
	return preg_replace('@\berror_return_url=[^&]*|\w+=(?:&|$)@', '', $url);
331
}
332
333
/**
334
 * Get a encoded url. If url is encoded, not encode. Otherwise html encode the url.
@@ 339-354 (lines=16) @@
336
 * @see getUrl()
337
 * @return string
338
 */
339
function getAutoEncodedUrl()
340
{
341
	$num_args = func_num_args();
342
	$args_list = func_get_args();
343
344
	if($num_args)
345
	{
346
		$url = Context::getUrl($num_args, $args_list, NULL, TRUE, TRUE);
347
	}
348
	else
349
	{
350
		$url = Context::getRequestUri();
351
	}
352
353
	return preg_replace('@\berror_return_url=[^&]*|\w+=(?:&|$)@', '', $url);
354
}
355
356
/**
357
 * Return the value adding request uri to getUrl() to get the full url