| Conditions | 4 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 61 | public function parse() { |
||
| 62 | if (empty($this->pages) && preg_match_all( |
||
| 63 | "/" . self::REGEX . "/siU", |
||
| 64 | $this->webPageContent, |
||
| 65 | $matches, |
||
| 66 | PREG_SET_ORDER |
||
| 67 | )) { |
||
| 68 | foreach ($matches as $match) { |
||
| 69 | $this->pages[] = trim(UrlUtil::getAbsoluteLink($this->url, $match[2])); |
||
| 70 | } |
||
| 71 | } |
||
| 72 | |||
| 73 | return $this->pages; |
||
| 74 | } |
||
| 75 | |||
| 76 | } |