Total Complexity | 7 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | class ConvertHelper_URLFinder_Detector_HTMLAttributes extends ConvertHelper_URLFinder_Detector |
||
21 | { |
||
22 | const REGEX = '/(href|src)="(.*)"/siU'; |
||
23 | |||
24 | public function getRunPosition() : string |
||
25 | { |
||
26 | return self::RUN_AFTER; |
||
27 | } |
||
28 | |||
29 | public function isValidFor(string $subject) : bool |
||
30 | { |
||
31 | return ConvertHelper::isStringHTML($subject); |
||
32 | } |
||
33 | |||
34 | protected function filterSubject(string $subject) : string |
||
37 | } |
||
38 | |||
39 | protected function detect(string $subject) : array |
||
56 |