original_string: protected function generateInfoYamlMetadata($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 generateInfoYamlMetadata($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 generateInfoYamlMetadata ( $ 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.yml` files in YAML format.
  
  @see _drush_pm_generate_info_yaml_metadata()
docstring_tokens: Generate version information for . info . yml files in YAML format .