original_string: private function buildFilters()
      {
          $filters = array();
  
          // file only ? or direcotry only ?
          if ($this->file_only) $filters[] = new Filter\FileOnlyFilter();
          if ($this->directory_only) $filters[] = new Filter\DirectoryOnlyFilter();
  
          // name match ?
          foreach ($this->names as $name) {
              $filters[] = new Filter\NameFilter($name);
          }
  
          return $filters;
      }
code: private function buildFilters()
      {
          $filters = array();
  
          // file only ? or direcotry only ?
          if ($this->file_only) $filters[] = new Filter\FileOnlyFilter();
          if ($this->directory_only) $filters[] = new Filter\DirectoryOnlyFilter();
  
          // name match ?
          foreach ($this->names as $name) {
              $filters[] = new Filter\NameFilter($name);
          }
  
          return $filters;
      }
code_tokens: private function buildFilters ( ) { $ filters = array ( ) ; // file only ? or direcotry only ? if ( $ this -> file_only ) $ filters [ ] = new Filter \ FileOnlyFilter ( ) ; if ( $ this -> directory_only ) $ filters [ ] = new Filter \ DirectoryOnlyFilter ( ) ; // name match ? foreach ( $ this -> names as $ name ) { $ filters [ ] = new Filter \ NameFilter ( $ name ) ; } return $ filters ; }
docstring: build filters for validate.
  
  @return  array
docstring_tokens: build filters for validate .