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

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

@@ 926-961 (lines=36) @@
923
	 				$includeDir = trimlrm(CONFIG_SYS_INC_DIR_PATTERN);
924
					$excludeDir = trimlrm(CONFIG_SYS_EXC_DIR_PATTERN);
925
					        
926
					if(!empty($includeDir) && !empty($excludeDir))
927
					{
928
						
929
						$validDir = explode(',', $includeDir);
930
						
931
						$invalidDir = explode(",", $excludeDir);
932
933
						if(array_search(basename($path), $validDir) !== false && array_search(basename($path), $invalidDir) === false)
934
						{
935
							return true;
936
						}else 
937
						{
938
							return false;
939
						}
940
					}elseif(!empty($includeDir))
941
					{
942
						$validDir = explode(',', $includeDir);
943
						if(array_search(basename($path), $validDir) !== false)
944
						{
945
							return true;
946
						}else 
947
						{
948
							return false;
949
						}
950
						
951
					}elseif(!empty($excludeFile))
952
					{
953
						$invalidDir = explode(",", $excludeDir);
954
						if(array_search(basename($path), $invalidDir) === false)
955
						{
956
							return true;
957
						}else 
958
						{
959
							return false;
960
						}
961
					}
962
					return true;
963
					
964
         		}elseif(is_file($path))
@@ 968-999 (lines=32) @@
965
         		{
966
				$includeFile = trimlrm(CONFIG_SYS_INC_FILE_PATTERN);
967
				$excludeFile = trimlrm(CONFIG_SYS_EXC_FILE_PATTERN);   
968
				if(!empty($includeFile) && !empty($excludeFile))
969
				{
970
					$validFile = explode(',', $includeFile);
971
					$invalidFile = explode(',', $excludeFile);
972
					if(array_search(basename($path), $validFile) !== false && array_search(basename($path), $invalidFile) === false)
973
					{
974
						return true;
975
					}else 
976
					{
977
						return false;
978
					}
979
				}elseif(!empty($includeFile))
980
				{
981
					$validFile = explode(',', $includeFile);
982
					if(array_search(basename($path), $validFile) !== false)
983
					{
984
						return true;
985
					}else 
986
					{
987
						return false;
988
					}
989
				}elseif(!empty($excludeFile))
990
				{
991
					$invalidFile = explode(',', $excludeFile);
992
					if(array_search(basename($path), $invalidFile) === false)
993
					{
994
						return true;
995
					}else 
996
					{
997
						return false;
998
					}
999
				}
1000
				return true;
1001
         		}
1002
         	}