From 815216bd41b2b78bf93d62f48e95997c478348aa Mon Sep 17 00:00:00 2001 From: SebLaus <97241865+SebLaus@users.noreply.github.com> Date: Sun, 24 Nov 2024 13:18:32 +0000 Subject: [PATCH] fixed Lint --- bridges/TicketioBridge.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bridges/TicketioBridge.php b/bridges/TicketioBridge.php index ed52f6c8687..3fd0e5b24d2 100644 --- a/bridges/TicketioBridge.php +++ b/bridges/TicketioBridge.php @@ -5,7 +5,7 @@ class TicketioBridge extends BridgeAbstract const NAME = 'Ticket.io Bridge'; const DESCRIPTION = 'Provides updates for available events in a specific ticketshop on ticket.io'; const MAINTAINER = 'SebLaus'; - const CACHE_TIMEOUT = 60*60*12; // 12 hours + const CACHE_TIMEOUT = 60 * 60 * 12; // 12 hours const PARAMETERS = [ [ 'Link' => [ @@ -16,7 +16,8 @@ class TicketioBridge extends BridgeAbstract ] ]; - public function collectData() { + public function collectData() + { $html = getSimpleHTMLDOM($this->getInput('Link')); if (!$html) { @@ -31,8 +32,8 @@ public function collectData() { $eventName = $eventRow->find('a.a-eventlink', 0)->plaintext; // Reduce eventName length if too long - if(strlen($eventName) > 35) { - $eventName = substr($eventName,0,35); + if (strlen($eventName) > 35) { + $eventName = substr($eventName, 0, 35); } // Find the list item containing the date