private static function pathMatchesRegex($path, $blackList)
    {
        foreach ($blackList as $item) {
            $match = '#' . strtr($item, '#', '\#') . '#';
            if (preg_match($match, $path)) {
                return true;
            }
        }

        return false;
    }
private static function pathMatchesRegex($path, $blackList)
    {
        foreach ($blackList as $item) {
            $match = '#' . strtr($item, '#', '\#') . '#';
            if (preg_match($match, $path)) {
                return true;
            }
        }

        return false;
    }
private static function pathMatchesRegex ( $ path , $ blackList ) { foreach ( $ blackList as $ item ) { $ match = '#' . strtr ( $ item , '#' , '\#' ) . '#' ; if ( preg_match ( $ match , $ path ) ) { return true ; } } return false ; }
Test path against blacklist regex list.

@param string   $path      The path to check.

@param string[] $blackList List of blacklist regexes.

@return bool
Test path against blacklist regex list .