original_string: private function resolveFile(\DirectoryIterator $file, array &$files)
      {
          if ($file->isDir() && !$file->isDot()) {
              $files = Tools::resolvePath($files, $this->getFileNames());
          }
  
          if ($file->isFile() && !$file->isLink() && $file->isReadable()) {
              $files = Tools::resolvePath($files, $file->getRealPath());
          }
      }
code: private function resolveFile(\DirectoryIterator $file, array &$files)
      {
          if ($file->isDir() && !$file->isDot()) {
              $files = Tools::resolvePath($files, $this->getFileNames());
          }
  
          if ($file->isFile() && !$file->isLink() && $file->isReadable()) {
              $files = Tools::resolvePath($files, $file->getRealPath());
          }
      }
code_tokens: private function resolveFile ( \ DirectoryIterator $ file , array & $ files ) { if ( $ file -> isDir ( ) && ! $ file -> isDot ( ) ) { $ files = Tools :: resolvePath ( $ files , $ this -> getFileNames ( ) ) ; } if ( $ file -> isFile ( ) && ! $ file -> isLink ( ) && $ file -> isReadable ( ) ) { $ files = Tools :: resolvePath ( $ files , $ file -> getRealPath ( ) ) ; } }
docstring: Add file to list or scan directory
  @param \DirectoryIterator $file
  @param array $files
docstring_tokens: Add file to list or scan directory