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

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

@@ 794-817 (lines=24) @@
791
     * @param string $string
792
     * @return booolean
793
     */
794
        function isValidPattern( $pattern, $string)
795
        {
796
            if(($pattern)=== '')
797
            {
798
                return true;
799
            }
800
            else if (strpos($pattern,",")!==false)
801
            {
802
                $regExps = explode(',', $pattern);
803
                foreach ($regExps as $regExp => $value)
804
                {
805
                    if(eregi($value, $string))
806
                    {
807
                        return true;
808
                    }
809
                }               
810
            }
811
            else if(eregi($pattern, $string))
812
            {
813
                return true;
814
            }
815
            return false;
816
           
817
        }       
818
819
		
820
    /**
@@ 827-850 (lines=24) @@
824
     * @param string $string
825
     * @return booolean
826
     */
827
        function isInvalidPattern( $pattern, $string)
828
        {
829
            if(($pattern)=== '')
830
            {
831
                return false;
832
            }
833
            else if (strpos($pattern,",")!==false)
834
            {
835
                $regExps = explode(',', $pattern);
836
                foreach ($regExps as $regExp => $value)
837
                {
838
                    if(eregi($value, $string))
839
                    {
840
                        return true;
841
                    }
842
                }               
843
            }
844
            else if(eregi($pattern, $string))
845
            {
846
                return true;
847
            }
848
            return false;
849
           
850
        }  
851
   			
852
853
		/**