Total Complexity | 1 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class Scraper extends AbstractScraper implements ScraperInterface |
||
16 | { |
||
17 | /** |
||
18 | * @var string[] |
||
19 | */ |
||
20 | protected $removables = array('.tdb-sub-title', '.tdb-flex-min', '.breadcrumb', '.tdb-social-share', '.wp-caption', '.td-a-ad', 'style', 'script'); |
||
21 | |||
22 | /** |
||
23 | * Returns the contents of an article. |
||
24 | * |
||
25 | * @param string $link |
||
26 | * @return \Pilipinews\Common\Article |
||
27 | */ |
||
28 | public function scrape($link) |
||
43 |