original_string: public function createConfigFile($toFile)
      {
          if (file_exists($toFile)) {
              $this->getOutput()->debug('Config file already exists in plugin, skipping creation of config file.');
  
              return;
          }
          if (!$this->configDumper->hasConfig()) {
              $this->getOutput()->debug('No config to write out, skipping creation of config file.');
  
              return;
          }
          $this->configDumper->dump($toFile);
          $this->getOutput()->debug('Created config file at '.$toFile);
      }
code: public function createConfigFile($toFile)
      {
          if (file_exists($toFile)) {
              $this->getOutput()->debug('Config file already exists in plugin, skipping creation of config file.');
  
              return;
          }
          if (!$this->configDumper->hasConfig()) {
              $this->getOutput()->debug('No config to write out, skipping creation of config file.');
  
              return;
          }
          $this->configDumper->dump($toFile);
          $this->getOutput()->debug('Created config file at '.$toFile);
      }
code_tokens: public function createConfigFile ( $ toFile ) { if ( file_exists ( $ toFile ) ) { $ this -> getOutput ( ) -> debug ( 'Config file already exists in plugin, skipping creation of config file.' ) ; return ; } if ( ! $ this -> configDumper -> hasConfig ( ) ) { $ this -> getOutput ( ) -> debug ( 'No config to write out, skipping creation of config file.' ) ; return ; } $ this -> configDumper -> dump ( $ toFile ) ; $ this -> getOutput ( ) -> debug ( 'Created config file at ' . $ toFile ) ; }
docstring: Create plugin config file.
  
  @param string $toFile
docstring_tokens: Create plugin config file .