Total Complexity | 2 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
24 | class MsgNotEmpty extends Base |
||
25 | { |
||
26 | /** |
||
27 | 5 | * SubjectStartsUpperCase constructor |
|
28 | */ |
||
29 | 5 | public function __construct() |
|
30 | 5 | { |
|
31 | $this->hint = 'Commit message can not be empty'; |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * Check if commit message is not empty |
||
36 | * |
||
37 | * @param \SebastianFeldmann\Git\CommitMessage $msg |
||
38 | 5 | * @return bool |
|
39 | */ |
||
40 | 5 | public function pass(CommitMessage $msg): bool |
|
43 | } |
||
44 | } |
||
45 |