Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
22 | public function grabFromSitemap() |
||
23 | { |
||
24 | system( |
||
25 | "echo; wget {$this->docset->url()}/sitemap.xml --quiet --output-document - | \ |
||
26 | egrep --only-matching '{$this->docset->url()}[^<]+' | \ |
||
27 | wget --input-file - {$this->wgetOptions()}", |
||
28 | $result |
||
29 | ); |
||
30 | |||
31 | return $result === 0; |
||
32 | } |
||
59 |