original_string: public function generate($path, $themeName, $force = false, array $options = [])
      {
          if ($themeName === self::BLANK_THEME) {
              parent::generate($path, $themeName, $force, $options);
  
              return;
          }
  
          $options = $this->getGenerateOptionsResolver()->resolve($options);
  
          $this->checkThemeName($themeName);
          $this->processPath($path, $force);
          $this->checkRequirements($themeName);
  
          $this->packageManager->createThemeProject(
              $path,
              $themeName,
              $options['repository'],
              $options['prefer-source']
          );
      }
code: public function generate($path, $themeName, $force = false, array $options = [])
      {
          if ($themeName === self::BLANK_THEME) {
              parent::generate($path, $themeName, $force, $options);
  
              return;
          }
  
          $options = $this->getGenerateOptionsResolver()->resolve($options);
  
          $this->checkThemeName($themeName);
          $this->processPath($path, $force);
          $this->checkRequirements($themeName);
  
          $this->packageManager->createThemeProject(
              $path,
              $themeName,
              $options['repository'],
              $options['prefer-source']
          );
      }
code_tokens: public function generate ( $ path , $ themeName , $ force = false , array $ options = [ ] ) { if ( $ themeName === self :: BLANK_THEME ) { parent :: generate ( $ path , $ themeName , $ force , $ options ) ; return ; } $ options = $ this -> getGenerateOptionsResolver ( ) -> resolve ( $ options ) ; $ this -> checkThemeName ( $ themeName ) ; $ this -> processPath ( $ path , $ force ) ; $ this -> checkRequirements ( $ themeName ) ; $ this -> packageManager -> createThemeProject ( $ path , $ themeName , $ options [ 'repository' ] , $ options [ 'prefer-source' ] ) ; }
docstring: Scaffolds a new theme. In case of exception, the new-site directory
  will be removed.
  
  @param string $path       Destination path
  @param string $themeName  Theme name. Pattern <theme_name>:<theme_version>
  can be used. "blank" is a special theme
  @param string $repository Provide a custom repository to search for the
  package, which will be used instead of packagist
  @param bool   $force      Force to clear destination if exists and it's
  not empty'
  @param array  $options    Options: "prefer-source", "prefer-lock" or "repository"
  
  @throws LogicException If there is an attemp of create a non-blank template without the PackageManager
docstring_tokens: Scaffolds a new theme . In case of exception the new - site directory will be removed .