Definition at line 15 of file CommitMessage.php.
Elgg\CommitMessage::__construct |
( |
|
$msg = null | ) |
|
Checks if a commit message is in the correct format.
- Parameters
-
string | null | $msg | The commit message |
Definition at line 147 of file CommitMessage.php.
Elgg\CommitMessage::__toString |
( |
| ) |
|
static Elgg\CommitMessage::findLengthyLines |
( |
|
$msg, |
|
|
|
$max_len |
|
) |
| |
|
static |
Returns an array of line numbers > $max_len.
- Parameters
-
string | $msg | The content to parse |
int | $max_len | Maximum length between
in the $msg |
- Returns
- array
Definition at line 332 of file CommitMessage.php.
Elgg\CommitMessage::getLengthyLines |
( |
| ) |
|
Get the line number of lines that are too long.
- Returns
- array
Definition at line 247 of file CommitMessage.php.
Elgg\CommitMessage::getMaxLineLength |
( |
| ) |
|
Elgg\CommitMessage::getMsg |
( |
| ) |
|
Elgg\CommitMessage::getOriginalMsg |
( |
| ) |
|
Elgg\CommitMessage::getPart |
( |
|
$part | ) |
|
Get part of the message.
- Parameters
-
string | $part | One section of the message. |
- Returns
- string
- Exceptions
-
Definition at line 298 of file CommitMessage.php.
static Elgg\CommitMessage::getValidTypes |
( |
| ) |
|
|
static |
Elgg\CommitMessage::isValid |
( |
| ) |
|
Elgg\CommitMessage::isValidFormat |
( |
| ) |
|
Whether the message format conforms to our standards.
- Returns
- boolean
Definition at line 227 of file CommitMessage.php.
Elgg\CommitMessage::isValidLineLength |
( |
| ) |
|
Elgg\CommitMessage::isValidType |
( |
| ) |
|
static Elgg\CommitMessage::removeComments |
( |
|
$msg | ) |
|
|
static |
Removes all lines that start with #.
- Parameters
-
string | $msg | The msg body of the commit |
- Returns
- string
Definition at line 313 of file CommitMessage.php.
Elgg\CommitMessage::setMaxLineLength |
( |
|
$len | ) |
|
Sets the max line length allowed.
Defaults to 160.
- Parameters
-
int | $len | The maximum length. |
- Returns
- void
Definition at line 286 of file CommitMessage.php.
Elgg\CommitMessage::setMsg |
( |
|
$msg | ) |
|
Sets the active message.
- Parameters
-
string | $msg | The message content |
- Returns
- void
Definition at line 160 of file CommitMessage.php.
Elgg\CommitMessage::shouldIgnore |
( |
| ) |
|
Should this msg be ignored for formatting?
- Returns
- boolean
Definition at line 191 of file CommitMessage.php.
The documentation for this class was generated from the following file: