@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | |
57 | 57 | $content = file_Get_contents($uri); |
58 | 58 | $content = mb_convert_encoding($content, 'UTF-8'); |
59 | - $dom->loadHTML('<?xml version="1.0" charset="UTF-8" ?>' . $content); |
|
59 | + $dom->loadHTML('<?xml version="1.0" charset="UTF-8" ?>'.$content); |
|
60 | 60 | $dom->preserveWhiteSpace = false; |
61 | 61 | |
62 | 62 | $timezone = 'UTC'; |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | $openingDateParser = new OpeningDate($timezone); |
89 | 89 | try { |
90 | 90 | $cfp->dateStart = $openingDateParser->parse($dom, $xpath); |
91 | - } catch (\Exception $e){} |
|
91 | + } catch (\Exception $e) {} |
|
92 | 92 | |
93 | 93 | $cfpUriParser = new Uri(); |
94 | 94 | $cfp->uri = $cfpUriParser->parse($dom, $xpath); |
@@ -154,15 +154,15 @@ discard block |
||
154 | 154 | { |
155 | 155 | $confPath = $xpath->query("//h3/a[contains(@class, 'summary')]"); |
156 | 156 | |
157 | - if (! $confPath || $confPath->length == 0) { |
|
157 | + if (!$confPath || $confPath->length == 0) { |
|
158 | 158 | throw new \InvalidArgumentException('We can\'t find an EventPage'); |
159 | 159 | } |
160 | 160 | |
161 | 161 | $dom = new \DOMDocument('1.0', 'UTF-8'); |
162 | 162 | |
163 | - $content = file_get_contents('https://lanyrd.com' . $confPath->item(0)->attributes->getNamedItem('href')->textContent); |
|
163 | + $content = file_get_contents('https://lanyrd.com'.$confPath->item(0)->attributes->getNamedItem('href')->textContent); |
|
164 | 164 | $content = mb_convert_encoding($content, 'UTF-8'); |
165 | - $dom->loadHTML('<?xml version="1.0" charset="UTF-8" ?>' . $content); |
|
165 | + $dom->loadHTML('<?xml version="1.0" charset="UTF-8" ?>'.$content); |
|
166 | 166 | $dom->preserveWhiteSpace = false; |
167 | 167 | |
168 | 168 | return $dom; |