original_string: protected function removePackageFolder($packagePath)
      {
          $this->info('Remove package folder.');
  
          if (File::exists($packagePath)) {
              if (! File::deleteDirectory($packagePath)) {
                  throw new RuntimeException('Cannot remove package folder');
              }
  
              $this->info('Package folder was successfully removed.');
          } else {
              $this->info('Package folder does not exists. Skipping.');
          }
      }
code: protected function removePackageFolder($packagePath)
      {
          $this->info('Remove package folder.');
  
          if (File::exists($packagePath)) {
              if (! File::deleteDirectory($packagePath)) {
                  throw new RuntimeException('Cannot remove package folder');
              }
  
              $this->info('Package folder was successfully removed.');
          } else {
              $this->info('Package folder does not exists. Skipping.');
          }
      }
code_tokens: protected function removePackageFolder ( $ packagePath ) { $ this -> info ( 'Remove package folder.' ) ; if ( File :: exists ( $ packagePath ) ) { if ( ! File :: deleteDirectory ( $ packagePath ) ) { throw new RuntimeException ( 'Cannot remove package folder' ) ; } $ this -> info ( 'Package folder was successfully removed.' ) ; } else { $ this -> info ( 'Package folder does not exists. Skipping.' ) ; } }
docstring: Remove package folder.
  
  @param $packagePath
  
  @throws RuntimeException
docstring_tokens: Remove package folder .