Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
57 | public function scrape(Crawler $crawler) |
||
58 | { |
||
59 | $texts = $crawler->filter('#accordion > *')->each(function (Crawler $node) { |
||
60 | return $node->text(); |
||
61 | }); |
||
62 | |||
63 | $sections = $this->getSections($texts); |
||
64 | list($text, $source) = $this->getFirstNonEmpty($sections); |
||
65 | |||
66 | return $this->returnResult($text, $source); |
||
67 | } |
||
68 | } |
||
69 |