| Total Complexity | 4 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | class LimitBodyLineLength extends Base |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * Length limit |
||
| 28 | * |
||
| 29 | * @var int |
||
| 30 | */ |
||
| 31 | protected $maxLength; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Constructor |
||
| 35 | * |
||
| 36 | * @param int $length |
||
| 37 | */ |
||
| 38 | 7 | public function __construct($length = 72) |
|
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Check if a body line doesn't exceed the max length limit |
||
| 46 | * |
||
| 47 | * @param \SebastianFeldmann\Git\CommitMessage $msg |
||
| 48 | * @return bool |
||
| 49 | */ |
||
| 50 | 7 | public function pass(CommitMessage $msg): bool |
|
| 63 |