| Total Complexity | 4 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | class ConvertHelper_URLFinder_Detector_Tel extends ConvertHelper_URLFinder_Detector |
||
| 34 | { |
||
| 35 | const REGEX = '/^tel:((?:\+[\d().-]*\d[\d().-]*|[0-9A-F*#().-]*[0-9A-F*#][0-9A-F*#().-]*(?:;[a-z\d-]+(?:=(?:[a-z\d\[\]\/:&+$_!~*\'().-]|%[\dA-F]{2})+)?)*;phone-context=(?:\+[\d().-]*\d[\d().-]*|(?:[a-z0-9]\.|[a-z0-9][a-z0-9-]*[a-z0-9]\.)*(?:[a-z]|[a-z][a-z0-9-]*[a-z0-9])))(?:;[a-z\d-]+(?:=(?:[a-z\d\[\]\/:&+$_!~*\'().-]|%[\dA-F]{2})+)?)*(?:,(?:\+[\d().-]*\d[\d().-]*|[0-9A-F*#().-]*[0-9A-F*#][0-9A-F*#().-]*(?:;[a-z\d-]+(?:=(?:[a-z\d\[\]\/:&+$_!~*\'().-]|%[\dA-F]{2})+)?)*;phone-context=\+[\d().-]*\d[\d().-]*)(?:;[a-z\d-]+(?:=(?:[a-z\d\[\]\/:&+$_!~*\'().-]|%[\dA-F]{2})+)?)*)*)$/s'; |
||
| 36 | |||
| 37 | public function getRunPosition() : string |
||
| 38 | { |
||
| 39 | return self::RUN_BEFORE; |
||
| 40 | } |
||
| 41 | |||
| 42 | public function isValidFor(string $subject) : bool |
||
| 45 | } |
||
| 46 | |||
| 47 | protected function filterSubject(string $subject) : string |
||
| 50 | } |
||
| 51 | |||
| 52 | protected function detect(string $subject) : array |
||
| 58 | } |
||
| 59 | } |
||
| 60 |