original_string: protected function clearDir($path)
      {
          $items = [];
          $finder = new Finder();
          $finder->in($path)
              ->ignoreVCS(false)
              ->ignoreDotFiles(false);
  
          foreach ($finder as $item) {
              $items[] = $item->getRealpath();
          }
  
          if (count($items) > 0) {
              $this->fs->remove($items);
          }
      }
code: protected function clearDir($path)
      {
          $items = [];
          $finder = new Finder();
          $finder->in($path)
              ->ignoreVCS(false)
              ->ignoreDotFiles(false);
  
          foreach ($finder as $item) {
              $items[] = $item->getRealpath();
          }
  
          if (count($items) > 0) {
              $this->fs->remove($items);
          }
      }
code_tokens: protected function clearDir ( $ path ) { $ items = [ ] ; $ finder = new Finder ( ) ; $ finder -> in ( $ path ) -> ignoreVCS ( false ) -> ignoreDotFiles ( false ) ; foreach ( $ finder as $ item ) { $ items [ ] = $ item -> getRealpath ( ) ; } if ( count ( $ items ) > 0 ) { $ this -> fs -> remove ( $ items ) ; } }
docstring: Clears the directory.
  
  @param string $path
docstring_tokens: Clears the directory .