original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Check whether the given file should be excluded.
  
  @param string $filename The filename to check.
  
  @return boolean
docstring_tokens: Check whether the given file should be excluded .