Метод |
Описание |
|
__construct ( string | null $msg = null ) |
Checks if a commit message is in the correct format |
|
__toString ( ) |
|
|
findLengthyLines ( string $msg, integer $max_len ) : array |
Returns an array of line numbers > $max_len |
|
getLengthyLines ( ) : array |
Get the line number of lines that are too long |
|
getMaxLineLength ( ) : integer |
Return the max line length |
|
getMsg ( ) : string |
Return the processed message. |
|
getOriginalMsg ( ) : string |
Return the original message |
|
getPart ( string $part ) : string |
Get part of the message |
|
getValidTypes ( ) : array |
Return all valid types |
|
isValid ( ) : boolean |
Are all parts of the message valid |
|
isValidFormat ( ) : boolean |
Whether the message format conforms to our standards. |
|
isValidLineLength ( ) : boolean |
Are any of the lines too long? |
|
isValidType ( ) : boolean |
Is the type valid |
|
removeComments ( string $msg ) : string |
Removes all lines that start with # |
|
setMaxLineLength ( integer $len ) : void |
Sets the max line length allowed. |
|
setMsg ( string $msg ) : void |
Sets the active message |
|
shouldIgnore ( ) : boolean |
Should this msg be ignored for formatting? |
|