private function matchPatterns($pathName, $patternList)
    {
        foreach ($patternList as $pattern) {
            if ($this->matchPattern($pathName, $pattern)) {
                return $pattern;
            }
        }

        return false;
    }
private function matchPatterns($pathName, $patternList)
    {
        foreach ($patternList as $pattern) {
            if ($this->matchPattern($pathName, $pattern)) {
                return $pattern;
            }
        }

        return false;
    }
private function matchPatterns ( $ pathName , $ patternList ) { foreach ( $ patternList as $ pattern ) { if ( $ this -> matchPattern ( $ pathName , $ pattern ) ) { return $ pattern ; } } return false ; }
Match the passed path name against the pattern list.

@param string $pathName    The path name to match.
@param array  $patternList The pattern list.

@return bool|string The first matching pattern if any of the pattern matches, false otherwise.
Match the passed path name against the pattern list .