From 4e22697b19edc1df95fb6bc7bf12ef004d7a3010 Mon Sep 17 00:00:00 2001 From: Arnav Jain Date: Fri, 15 Dec 2023 11:45:12 +0100 Subject: [PATCH] [DagensNyheterDirektBridge] Lint: final fixes --- bridges/DagensNyheterDirektBridge.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bridges/DagensNyheterDirektBridge.php b/bridges/DagensNyheterDirektBridge.php index ebba818d4d3..4d1629fbbd5 100644 --- a/bridges/DagensNyheterDirektBridge.php +++ b/bridges/DagensNyheterDirektBridge.php @@ -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'; } @@ -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;