PHP Класс 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
Показать файл Открыть проект

Открытые методы

Метод Описание
getLastVersionRegex ( )
updateExistingLines ( $lines, $version, $comment, $options )

Защищенные методы

Метод Описание
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

Описание методов

findPositionToInsert() защищенный Метод

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
Результат integer The position where to insert

getFormattedDate() защищенный Метод

protected getFormattedDate ( )

getLastVersionRegex() публичный Метод

public getLastVersionRegex ( )

getNewLines() защищенный Метод

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
Результат array An array of new lines

updateExistingLines() публичный Метод

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