| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class FSEventParser |
||
| 11 | { |
||
| 12 | protected const REGEX = '/^([\S+]{3}\s+[^\/]*)\s(\/[\S+]*)\s+([\S+*\s+]*)/mi'; |
||
| 13 | |||
| 14 | protected const DATE = 1; |
||
| 15 | protected const PATH = 2; |
||
| 16 | protected const EVENTS = 3; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param string $event |
||
| 20 | * |
||
| 21 | * @return \SwooleTW\Http\HotReload\FSEvent |
||
| 22 | */ |
||
| 23 | public static function toEvent(string $event): ?FSEvent |
||
| 36 | } |
||
| 37 | } |