Update VproTegenlichtBridge.php (#3168)

Fix lint error
This commit is contained in:
Juan Jose Pablos 2022-11-29 15:19:16 +01:00 committed by GitHub
parent d38cd05bea
commit ca667d731c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,13 +19,12 @@ class VproTegenlichtBridge extends BridgeAbstract
$dom = getSimpleHTMLDOM($url)
or returnServerError('No contents received!');
$dom = $dom->find('ul#browsable-news-overview', 0);
$dom = defaultLinkTo($dom, $this->getURI());
foreach ($dom->find('li') as $article) {
$a = $article->find('a.complex-teaser', 0);
$title = $article->find('a.complex-teaser', 0)->title;
$url = $article->find('a.complex-teaser', 0)->href;
$author = "VPRO tegenlicht";
$author = 'VPRO tegenlicht';
$content = $article->find('p.complex-teaser-summary', 0)->plaintext;
$timestamp = strtotime($article->find('div.complex-teaser-data', 0)->plaintext);