original_string: public function write()
      {
          foreach ($this->parameters as $prop => $value) {
              $placeHolders[] = sprintf('<%s>', $prop);
              $replacements[] = $value;
          }
  
          $config = str_replace($placeHolders, $replacements, self::$configTemplate);
          $config = sprintf('%s%s%s', self::$defaultConfigTemplate, PHP_EOL, $config);
  
          if (true === $this->parameters['composer']) {
              $config = sprintf('%s%s%s', $config, PHP_EOL, self::$downloadComposerTaskTemplate);
          }
  
          if (true === $this->parameters['schemadb']) {
              $config = sprintf('%s%s%s', $config, PHP_EOL, self::$updateSchemaTaskTemplate);
          }
  
          fwrite($this->file, $this->addHeaders($config));
      }
code: public function write()
      {
          foreach ($this->parameters as $prop => $value) {
              $placeHolders[] = sprintf('<%s>', $prop);
              $replacements[] = $value;
          }
  
          $config = str_replace($placeHolders, $replacements, self::$configTemplate);
          $config = sprintf('%s%s%s', self::$defaultConfigTemplate, PHP_EOL, $config);
  
          if (true === $this->parameters['composer']) {
              $config = sprintf('%s%s%s', $config, PHP_EOL, self::$downloadComposerTaskTemplate);
          }
  
          if (true === $this->parameters['schemadb']) {
              $config = sprintf('%s%s%s', $config, PHP_EOL, self::$updateSchemaTaskTemplate);
          }
  
          fwrite($this->file, $this->addHeaders($config));
      }
code_tokens: public function write ( ) { foreach ( $ this -> parameters as $ prop => $ value ) { $ placeHolders [ ] = sprintf ( '<%s>' , $ prop ) ; $ replacements [ ] = $ value ; } $ config = str_replace ( $ placeHolders , $ replacements , self :: $ configTemplate ) ; $ config = sprintf ( '%s%s%s' , self :: $ defaultConfigTemplate , PHP_EOL , $ config ) ; if ( true === $ this -> parameters [ 'composer' ] ) { $ config = sprintf ( '%s%s%s' , $ config , PHP_EOL , self :: $ downloadComposerTaskTemplate ) ; } if ( true === $ this -> parameters [ 'schemadb' ] ) { $ config = sprintf ( '%s%s%s' , $ config , PHP_EOL , self :: $ updateSchemaTaskTemplate ) ; } fwrite ( $ this -> file , $ this -> addHeaders ( $ config ) ) ; }
docstring: Writes deployment file.
docstring_tokens: Writes deployment file .