Total Complexity | 3 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
24 | class CapitalizeSubject extends Base |
||
25 | { |
||
26 | /** |
||
27 | 9 | * Constructor |
|
28 | */ |
||
29 | 9 | public function __construct() |
|
30 | 9 | { |
|
31 | $this->hint = 'Subject line has to start with an upper case letter'; |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * Check if commit message starts with upper case letter |
||
36 | * |
||
37 | * @param \SebastianFeldmann\Git\CommitMessage $msg |
||
38 | 9 | * @return bool |
|
39 | */ |
||
40 | 9 | public function pass(CommitMessage $msg): bool |
|
47 | } |
||
48 | } |
||
49 |