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;
    }
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;
    }
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 ; }
Generate version information for `.info.yml` files in YAML format.

@see _drush_pm_generate_info_yaml_metadata()
Generate version information for . info . yml files in YAML format .