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