Total Complexity | 2 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | final class GithubCommitParser implements InlineParserInterface |
||
9 | { |
||
10 | // Regex used to match Github commit link. |
||
11 | const REGEXP_COMMIT = '\bhttps?:\/\/github\.com\/(?<repo>[\w-]+\/[\w-]+)\/commit\/(?<commit>[0-9a-f]{7,40})'; |
||
12 | |||
13 | public function getMatchDefinition(): InlineParserMatch |
||
16 | } |
||
17 | |||
18 | public function parse(InlineParserContext $inlineContext): bool |
||
45 |