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