Skip to content

Commit

Permalink
fixed Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
SebLaus committed Nov 24, 2024
1 parent 8899164 commit 815216b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions bridges/TicketioBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => [
Expand All @@ -16,7 +16,8 @@ class TicketioBridge extends BridgeAbstract
]
];

public function collectData() {
public function collectData()
{
$html = getSimpleHTMLDOM($this->getInput('Link'));

if (!$html) {
Expand All @@ -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
Expand Down

0 comments on commit 815216b

Please sign in to comment.