Total Complexity | 5 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Coverage | 66.67% |
Changes | 0 |
1 | <?php |
||
7 | final class DocsetGrabber |
||
8 | { |
||
9 | public $docset; |
||
10 | |||
11 | |||
12 | 18 | public function __construct(Docset $docset) |
|
13 | { |
||
14 | 18 | $this->docset = $docset; |
|
15 | 18 | } |
|
16 | |||
17 | 6 | public function sitemapExists() |
|
18 | { |
||
19 | 6 | return @file_get_contents("https://{$this->docset->url()}/sitemap.xml"); |
|
20 | } |
||
21 | |||
22 | public function grabFromSitemap() |
||
32 | } |
||
33 | |||
34 | 6 | public function grabFromIndex() |
|
42 | } |
||
43 | |||
44 | 6 | protected function wgetOptions() |
|
54 | -e robots=off \ |
||
55 | --quiet \ |
||
56 | --show-progress"; |
||
59 |