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

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

@@ 762-772 (lines=11) @@
759
         function getValidTextEditorExts()
760
         {
761
         	$validEditorExts = explode(',', CONFIG_EDITABLE_VALID_EXTS);
762
         	if(CONFIG_UPLOAD_VALID_EXTS)
763
         	{//exclude those exts not shown on CONFIG_UPLOAD_VALID_EXTS
764
         		$validUploadExts = explode(',', CONFIG_UPLOAD_VALID_EXTS);
765
         		foreach($validEditorExts as $k=>$v)
766
         		{
767
         			if(array_search($v, $validUploadExts) === false)
768
         			{
769
         				unset($validEditorExts[$k]);
770
         			}
771
         		}        		
772
         	}
773
         	if(CONFIG_UPLOAD_INVALID_EXTS)
774
         	{//exlcude those exists in CONFIG_UPLOAD_INVALID_EXTS
775
         		$invalidUploadExts = explode(',', CONFIG_UPLOAD_INVALID_EXTS);
@@ 773-783 (lines=11) @@
770
         			}
771
         		}        		
772
         	}
773
         	if(CONFIG_UPLOAD_INVALID_EXTS)
774
         	{//exlcude those exists in CONFIG_UPLOAD_INVALID_EXTS
775
         		$invalidUploadExts = explode(',', CONFIG_UPLOAD_INVALID_EXTS);
776
         		foreach($validEditorExts as $k=>$v)
777
         		{
778
         			if(array_search($v, $invalidUploadExts) !== false)
779
         			{
780
         				unset($validEditorExts[$k]);
781
         			}
782
         		}
783
         	}
784
         	return $validEditorExts;        	
785
         	
786
         }