@@ -114,6 +114,9 @@ discard block |
||
| 114 | 114 | } |
| 115 | 115 | } |
| 116 | 116 | |
| 117 | + /** |
|
| 118 | + * @param string $location |
|
| 119 | + */ |
|
| 117 | 120 | protected function getLatLonForLocation($location) |
| 118 | 121 | { |
| 119 | 122 | $result = $this->client->get(sprintf( |
@@ -131,6 +134,9 @@ discard block |
||
| 131 | 134 | return [$location->lat, $location->lon]; |
| 132 | 135 | } |
| 133 | 136 | |
| 137 | + /** |
|
| 138 | + * @param \DOMXPath $xpath |
|
| 139 | + */ |
|
| 134 | 140 | public function getEventPage($xpath) |
| 135 | 141 | { |
| 136 | 142 | $confPath = $xpath->query("//h3/a[contains(@class, 'summary')]"); |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | { |
| 37 | 37 | $confPath = $xpath->query("//h3/a[contains(@class, 'summary')]"); |
| 38 | 38 | |
| 39 | - if (! $confPath || $confPath->length == 0) { |
|
| 39 | + if (!$confPath || $confPath->length == 0) { |
|
| 40 | 40 | throw new \InvalidArgumentException('The CfP does not seem to have an eventname'); |
| 41 | 41 | } |
| 42 | 42 | |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | public function parse($dom, $xpath) |
| 36 | 36 | { |
| 37 | 37 | $openingDate = $xpath->query("//span[text()='Openend on:']/following-sibling::strong"); |
| 38 | - if (! $openingDate || $openingDate->length == 0) { |
|
| 38 | + if (!$openingDate || $openingDate->length == 0) { |
|
| 39 | 39 | return new \DateTime(); |
| 40 | 40 | } |
| 41 | 41 | |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | { |
| 37 | 37 | $uriPath = $xpath->query("//a[contains(@title, 'visit their website')]"); |
| 38 | 38 | |
| 39 | - if (! $uriPath || $uriPath->length == 0) { |
|
| 39 | + if (!$uriPath || $uriPath->length == 0) { |
|
| 40 | 40 | throw new \InvalidArgumentException('The CfP does not seem to have an EventUri'); |
| 41 | 41 | } |
| 42 | 42 | |