Skip to content

Commit

Permalink
[DagensNyheterDirektBridge] Lint: final fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ajain-93 committed Dec 15, 2023
1 parent f50c4a4 commit 4e22697
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bridges/DagensNyheterDirektBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ class DagensNyheterDirektBridge extends BridgeAbstract
const MAINTAINER = 'ajain-93';
const LIMIT = 20;

public function getIcon(){
public function getIcon()
{
return 'https://cdn.dn-static.se/images/favicon__c2dd3284b46ffdf4d520536e526065fa8.svg';
}

Expand All @@ -20,8 +21,7 @@ public function collectData()
$html = getSimpleHTMLDOM($NEWSURL) or
returnServerError('Could not request: ' . $NEWSURL);

foreach ($html->find('article') as $element)
{
foreach ($html->find('article') as $element) {
$link = $element->find('button', 0)->getAttribute('data-link');
$datetime = $element->getAttribute('data-publication-time');
$url = self::BASEURL . $link;
Expand Down

0 comments on commit 4e22697

Please sign in to comment.