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

config/func.inc.php 2 locations

@@ 372-376 (lines=5) @@
369
	}
370
371
	$url = Context::getUrl($num_args, $args_list);
372
	if(strncasecmp('http', $url, 4) !== 0)
373
	{
374
		preg_match('/^(http|https):\/\/([^\/]+)\//', $request_uri, $match);
375
		return substr($match[0], 0, -1) . $url;
376
	}
377
	return $url;
378
}
379
@@ 469-473 (lines=5) @@
466
	$num_args = count($args_list);
467
468
	$url = Context::getUrl($num_args, $args_list, $domain);
469
	if(strncasecmp('http', $url, 4) !== 0)
470
	{
471
		preg_match('/^(http|https):\/\/([^\/]+)\//', $request_uri, $match);
472
		return substr($match[0], 0, -1) . $url;
473
	}
474
	return $url;
475
}
476