protected function inBlacklist($filename, array $blacklist)
    {
        foreach ($blacklist as $pattern) {
            if (fnmatch($pattern, $filename, FNM_PATHNAME | FNM_CASEFOLD)) {
                return true;
            }
        }

        return false;
    }
protected function inBlacklist($filename, array $blacklist)
    {
        foreach ($blacklist as $pattern) {
            if (fnmatch($pattern, $filename, FNM_PATHNAME | FNM_CASEFOLD)) {
                return true;
            }
        }

        return false;
    }
protected function inBlacklist ( $ filename , array $ blacklist ) { foreach ( $ blacklist as $ pattern ) { if ( fnmatch ( $ pattern , $ filename , FNM_PATHNAME | FNM_CASEFOLD ) ) { return true ; } } return false ; }
Check if a filename is in the blacklist.

@param string   $filename
@param string[] $blacklist

@return bool
Check if a filename is in the blacklist .