| Total Complexity | 4 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | class Extractor |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * Find the notification inside a commit message and return a Notification model |
||
| 26 | * |
||
| 27 | * @param string $message |
||
| 28 | * @param string $prefix |
||
| 29 | * @return \CaptainHook\App\Hook\Notify\Notification |
||
| 30 | */ |
||
| 31 | 4 | public static function extractNotification(string $message, string $prefix = 'git-notify:'): Notification |
|
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param string $message |
||
| 38 | * @param string $prefix |
||
| 39 | * @return array<string> |
||
| 40 | */ |
||
| 41 | 4 | private static function getLines(string $message, string $prefix): array |
|
| 52 |