protected function isExcluded($filename)
    {
        foreach ($this->config->getExcludedFiles() as $excludedFile) {
            if ($filename === $excludedFile) {
                return true;
            }
        }
        foreach ($this->config->getExcludedDirs() as $excludedDir) {
            if (strpos($filename, $excludedDir) === 0) {
                return true;
            }
        }
        return false;
    }
protected function isExcluded($filename)
    {
        foreach ($this->config->getExcludedFiles() as $excludedFile) {
            if ($filename === $excludedFile) {
                return true;
            }
        }
        foreach ($this->config->getExcludedDirs() as $excludedDir) {
            if (strpos($filename, $excludedDir) === 0) {
                return true;
            }
        }
        return false;
    }
protected function isExcluded ( $ filename ) { foreach ( $ this -> config -> getExcludedFiles ( ) as $ excludedFile ) { if ( $ filename === $ excludedFile ) { return true ; } } foreach ( $ this -> config -> getExcludedDirs ( ) as $ excludedDir ) { if ( strpos ( $ filename , $ excludedDir ) === 0 ) { return true ; } } return false ; }
Check whether the given file should be excluded.

@param string $filename The filename to check.

@return boolean
Check whether the given file should be excluded .