PHP Class Liip\RMT\Changelog\Formatter\SemanticChangelogFormatter

Format a changelog file in a sementic style. Here is an example: VERSION 1 MAJOR TITLE ====================== Version 1.1 - Minor Title 08/11/1980 12:34 1.1.1 patch comment ada96f3 commit msg 2eb6fae commit msg 08/11/1980 03:56 1.1.0 initial release' 2eb6fae commit msg Version 1.0 - Minor Title 08/11/1980 03:56 1.0.0 initial release' 2eb6fae commit msg VERSION 0 BETA =============== Version 0.9 - Minor Title 08/11/1980 12:34 0.9.1 patch comment ada96f3 commit msg 2eb6fae commit msg 08/11/1980 03:56 0.9.0 initial release' 2eb6fae commit msg
Afficher le fichier Open project: liip/rmt

Méthodes publiques

Méthode Description
getLastVersionRegex ( )
updateExistingLines ( $lines, $version, $comment, $options )

Méthodes protégées

Méthode Description
findPositionToInsert ( array $lines, string $type ) : integer Return the position where to insert new lines according to the type of insertion
getFormattedDate ( )
getNewLines ( string $type, string $version, string $comment ) : array Return the new formatted lines for the given variables

Method Details

findPositionToInsert() protected méthode

Return the position where to insert new lines according to the type of insertion
protected findPositionToInsert ( array $lines, string $type ) : integer
$lines array Existing lines
$type string Release type
Résultat integer The position where to insert

getFormattedDate() protected méthode

protected getFormattedDate ( )

getLastVersionRegex() public méthode

public getLastVersionRegex ( )

getNewLines() protected méthode

Return the new formatted lines for the given variables
protected getNewLines ( string $type, string $version, string $comment ) : array
$type string The version type, could be major, minor, patch
$version string The new version number
$comment string The user comment
Résultat array An array of new lines

updateExistingLines() public méthode

public updateExistingLines ( $lines, $version, $comment, $options )