|
@@ -54,7 +54,7 @@ discard block |
|
|
block discarded – undo |
|
54
|
54
|
|
|
55
|
55
|
$content = file_Get_contents($uri); |
|
56
|
56
|
$content = mb_convert_encoding($content, 'UTF-8'); |
|
57
|
|
- $dom->loadHTML('<?xml version="1.0" charset="UTF-8" ?>' . $content); |
|
|
57
|
+ $dom->loadHTML('<?xml version="1.0" charset="UTF-8" ?>'.$content); |
|
58
|
58
|
$dom->preserveWhiteSpace = false; |
|
59
|
59
|
|
|
60
|
60
|
$xpath = new \DOMXPath($dom); |
|
@@ -135,15 +135,15 @@ discard block |
|
|
block discarded – undo |
|
135
|
135
|
{ |
|
136
|
136
|
$confPath = $xpath->query("//h3/a[contains(@class, 'summary')]"); |
|
137
|
137
|
|
|
138
|
|
- if (! $confPath || $confPath->length == 0) { |
|
|
138
|
+ if (!$confPath || $confPath->length == 0) { |
|
139
|
139
|
throw new \InvalidArgumentException('We can\'t find an EventPage'); |
|
140
|
140
|
} |
|
141
|
141
|
|
|
142
|
142
|
$dom = new \DOMDocument('1.0', 'UTF-8'); |
|
143
|
143
|
|
|
144
|
|
- $content = file_get_contents('https://lanyrd.com' . $confPath->item(0)->attributes->getNamedItem('href')->textContent); |
|
|
144
|
+ $content = file_get_contents('https://lanyrd.com'.$confPath->item(0)->attributes->getNamedItem('href')->textContent); |
|
145
|
145
|
$content = mb_convert_encoding($content, 'UTF-8'); |
|
146
|
|
- $dom->loadHTML('<?xml version="1.0" charset="UTF-8" ?>' . $content); |
|
|
146
|
+ $dom->loadHTML('<?xml version="1.0" charset="UTF-8" ?>'.$content); |
|
147
|
147
|
$dom->preserveWhiteSpace = false; |
|
148
|
148
|
|
|
149
|
149
|
return $dom; |
Please login to merge, or discard this patch.