| Conditions | 2 |
| Paths | 1 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function scrape(Crawler $crawler) |
||
| 15 | { |
||
| 16 | $texts = $crawler->filter('.book-details > div')->each(function (Crawler $node) { |
||
| 17 | if (strpos($node->attr('class'), 'row') === false) { |
||
| 18 | return $node->text(); |
||
| 19 | } |
||
| 20 | }); |
||
| 21 | $text = $this->getLongestText($texts); |
||
| 22 | |||
| 23 | return $this->returnResult($text, 'Universitetsforlaget'); |
||
| 24 | } |
||
| 25 | } |
||
| 26 |