| 1 | <?php |
||
| 22 | class LimitBodyLineLength extends Base |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * Length limit |
||
| 26 | * |
||
| 27 | * @var int |
||
| 28 | */ |
||
| 29 | protected $maxLength; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Constructor. |
||
| 33 | * |
||
| 34 | * @param int $length |
||
| 35 | */ |
||
| 36 | 6 | public function __construct($length = 72) |
|
| 41 | |||
| 42 | /** |
||
| 43 | * Check if a body line doesn't exceed the max length limit. |
||
| 44 | * |
||
| 45 | * @param \sebastianfeldmann\CaptainHook\Git\CommitMessage $msg |
||
| 46 | * @return bool |
||
| 47 | */ |
||
| 48 | 5 | public function pass(CommitMessage $msg) |
|
| 60 | } |
||
| 61 |