Completed
Pull Request — master (#13)
by Andreas
03:52
created
src/Parser/Lanyrd/Entry.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -114,6 +114,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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')]");
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Parser/Lanyrd/OpeningDate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Parser/Lanyrd/EventUri.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.