original_string: protected function getFiles()
      {
          $this->mirrorDir();
          $this->prepareMirrorDir();
          $this->printTaskInfo('Retrieving files to package.');
          $mirrorFinder = new Finder();
          $mirrorFinder->ignoreDotFiles(false);
          $add = [];
          $mirrorFinder
              ->in($this->tmpDir)
              ->depth(0);
          foreach ($mirrorFinder as $file) {
              $add[substr($file->getRealPath(), strlen(realpath($this->tmpDir)) + 1)] = $file->getRealPath();
          }
          return $add;
      }
code: protected function getFiles()
      {
          $this->mirrorDir();
          $this->prepareMirrorDir();
          $this->printTaskInfo('Retrieving files to package.');
          $mirrorFinder = new Finder();
          $mirrorFinder->ignoreDotFiles(false);
          $add = [];
          $mirrorFinder
              ->in($this->tmpDir)
              ->depth(0);
          foreach ($mirrorFinder as $file) {
              $add[substr($file->getRealPath(), strlen(realpath($this->tmpDir)) + 1)] = $file->getRealPath();
          }
          return $add;
      }
code_tokens: protected function getFiles ( ) { $ this -> mirrorDir ( ) ; $ this -> prepareMirrorDir ( ) ; $ this -> printTaskInfo ( 'Retrieving files to package.' ) ; $ mirrorFinder = new Finder ( ) ; $ mirrorFinder -> ignoreDotFiles ( false ) ; $ add = [ ] ; $ mirrorFinder -> in ( $ this -> tmpDir ) -> depth ( 0 ) ; foreach ( $ mirrorFinder as $ file ) { $ add [ substr ( $ file -> getRealPath ( ) , strlen ( realpath ( $ this -> tmpDir ) ) + 1 ) ] = $ file -> getRealPath ( ) ; } return $ add ; }
docstring: Get the files and directories to package.
  
  @return array
  The list of files and directories to package.
docstring_tokens: Get the files and directories to package .