original_string: protected function generateInfoIniMetadata($version, $project, $datestamp)
      {
          $core = preg_replace('/^([0-9]).*$/', '$1.x', $version);
          $date = date('Y-m-d', $datestamp);
          $info = <<<METADATA
  
  ; Information add by drustack/composer-generate-metadata on {$date}
  core = "{$core}"
  project = "{$project}"
  version = "{$version}"
  datestamp = "{$datestamp}"
  METADATA;
  
          return $info;
      }
code: protected function generateInfoIniMetadata($version, $project, $datestamp)
      {
          $core = preg_replace('/^([0-9]).*$/', '$1.x', $version);
          $date = date('Y-m-d', $datestamp);
          $info = <<<METADATA
  
  ; Information add by drustack/composer-generate-metadata on {$date}
  core = "{$core}"
  project = "{$project}"
  version = "{$version}"
  datestamp = "{$datestamp}"
  METADATA;
  
          return $info;
      }
code_tokens: protected function generateInfoIniMetadata ( $ version , $ project , $ datestamp ) { $ core = preg_replace ( '/^([0-9]).*$/' , '$1.x' , $ version ) ; $ date = date ( 'Y-m-d' , $ datestamp ) ; $ info =  <<<METADATA
  
  ; Information add by drustack/composer-generate-metadata on {$date}
  core = "{$core}"
  project = "{$project}"
  version = "{$version}"
  datestamp = "{$datestamp}"
  METADATA ; return $ info ; }
docstring: Generate version information for `.info` files in ini format.
  
  @see _drush_pm_generate_info_ini_metadata()
docstring_tokens: Generate version information for . info files in ini format .