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

phpmyfaq/admin/editor/plugins/ajaxfilemanager/inc/function.base.php 2 locations

@@ 307-315 (lines=9) @@
304
	 * @param string $value
305
	 * @return string
306
	 */
307
	function getParentPath($value)
308
	{
309
		$value = removeTrailingSlash(backslashToSlash($value));
310
		if(false !== ($index = strrpos($value, "/")) )
311
		{
312
			return substr($value, 0, $index);
313
		}
314
315
	}
316
317
318
	/**
@@ 410-421 (lines=12) @@
407
	 * @param string $value
408
	 * @return string
409
	 */
410
	function getBaseName($value)
411
	{
412
		$value = removeTrailingSlash(backslashToSlash($value));
413
414
		if(false !== ($index = strrpos($value, "/")) )
415
		{
416
			return substr($value, $index + 1);
417
		}else
418
		{
419
			return $value;
420
		}
421
	}
422
423
function myRealPath($path) {
424