@@ -57,29 +57,29 @@ |
||
57 | 57 | $xpath = new DOMXPath($dom); |
58 | 58 | $titlePath = $xpath->query("//h1[contains(@class, 'subheader__subtitle')]"); |
59 | 59 | |
60 | - if (! $titlePath || $titlePath->length == 0) { |
|
60 | + if (!$titlePath || $titlePath->length == 0) { |
|
61 | 61 | return $cfp; |
62 | 62 | } |
63 | 63 | |
64 | 64 | $locationTimeString = trim($titlePath->item(0)->textContent); |
65 | 65 | $locationTime = explode(' - ', $locationTimeString); |
66 | 66 | |
67 | - if (! isset($locationTime[1])) { |
|
67 | + if (!isset($locationTime[1])) { |
|
68 | 68 | return $cfp; |
69 | 69 | } |
70 | 70 | |
71 | 71 | $dates = explode(',', $locationTime[1]); |
72 | - if (count($dates) % 2 !== 0) { |
|
72 | + if (count($dates) % 2 !== 0) { |
|
73 | 73 | return $cfp; |
74 | 74 | } |
75 | 75 | |
76 | - $datestring = $dates[0] . ', ' . $dates[1]; |
|
76 | + $datestring = $dates[0].', '.$dates[1]; |
|
77 | 77 | |
78 | 78 | if (count($dates) >= 4) { |
79 | - $datestring = $dates[2] . ', ' . $dates[3]; |
|
79 | + $datestring = $dates[2].', '.$dates[3]; |
|
80 | 80 | } |
81 | 81 | |
82 | - $endDate = new DateTimeImmutable($datestring . ' 00:00:00', $timezone); |
|
82 | + $endDate = new DateTimeImmutable($datestring.' 00:00:00', $timezone); |
|
83 | 83 | $cfp->eventEndDate = $endDate; |
84 | 84 | |
85 | 85 | return $cfp; |
@@ -56,19 +56,19 @@ discard block |
||
56 | 56 | $xpath = new DOMXPath($dom); |
57 | 57 | $titlePath = $xpath->query("//h1[contains(@class, 'subheader__subtitle')]"); |
58 | 58 | |
59 | - if (! $titlePath || $titlePath->length == 0) { |
|
59 | + if (!$titlePath || $titlePath->length == 0) { |
|
60 | 60 | return $cfp; |
61 | 61 | } |
62 | 62 | |
63 | 63 | $location = trim($titlePath->item(0)->textContent); |
64 | 64 | $location = explode(' - ', $location); |
65 | 65 | |
66 | - if (! isset($location[1])) { |
|
66 | + if (!isset($location[1])) { |
|
67 | 67 | return $cfp; |
68 | 68 | } |
69 | 69 | |
70 | 70 | $dates = explode(',', $location[1]); |
71 | - if (count($dates) % 2 !== 0) { |
|
71 | + if (count($dates) % 2 !== 0) { |
|
72 | 72 | return $cfp; |
73 | 73 | } |
74 | 74 | |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | return $cfp; |
77 | 77 | } |
78 | 78 | |
79 | - $startDate = new DateTimeImmutable($dates[0] . ', ' . $dates[1] . ' 00:00:00', $timezone); |
|
79 | + $startDate = new DateTimeImmutable($dates[0].', '.$dates[1].' 00:00:00', $timezone); |
|
80 | 80 | $cfp->eventStartDate = $startDate; |
81 | 81 | |
82 | 82 | return $cfp; |
@@ -66,7 +66,7 @@ |
||
66 | 66 | do { |
67 | 67 | $dom = new DOMDocument('1.0', 'UTF-8'); |
68 | 68 | libxml_use_internal_errors(true); |
69 | - $uri = sprintf($this->uri, $i+1); |
|
69 | + $uri = sprintf($this->uri, $i + 1); |
|
70 | 70 | $dom->loadHTMLFile($uri); |
71 | 71 | libxml_use_internal_errors(false); |
72 | 72 | $dom->preserveWhiteSpace = false; |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | ); |
52 | 52 | $request = new Request( |
53 | 53 | 'POST', |
54 | - 'statuses/update.json?' . $this->formUrlEncode([ |
|
54 | + 'statuses/update.json?'.$this->formUrlEncode([ |
|
55 | 55 | 'status' => $notificationString, |
56 | 56 | 'lat' => $cfp->latitude, |
57 | 57 | 'long' => $cfp->longitude, |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | if (strlen($name) < 70) { |
72 | 72 | return $name; |
73 | 73 | } |
74 | - return substr($name, 0, 69) . '…'; |
|
74 | + return substr($name, 0, 69).'…'; |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | protected function shortenUri($uri) |
@@ -44,7 +44,7 @@ |
||
44 | 44 | $xpath = new DOMXPath($dom); |
45 | 45 | $titlePath = $xpath->query("//div[contains(@class, 'subheader__logo')]/img"); |
46 | 46 | |
47 | - if (! $titlePath || $titlePath->length == 0) { |
|
47 | + if (!$titlePath || $titlePath->length == 0) { |
|
48 | 48 | return $cfp; |
49 | 49 | } |
50 | 50 |