Completed
Pull Request — master (#9)
by Andreas
02:26
created
src/Parser/Lanyrd/ClosingDate.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
         $closingDate = $xpath->query("//span[text()='Closes on:']/following-sibling::strong");
38
-        if (! $closingDate || $closingDate->length == 0) {
38
+        if (!$closingDate || $closingDate->length == 0) {
39 39
             throw new \InvalidArgumentException('The CfP does not seem to have a closing date');
40 40
         }
41 41
 
Please login to merge, or discard this patch.
src/Parser/Lanyrd/Uri.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         $uri = $xpath->query(
38 38
             "//div[contains(@class, \"description\")]/following-sibling::p/a"
39 39
         );
40
-        if (! $uri || $uri->length == 0) {
40
+        if (!$uri || $uri->length == 0) {
41 41
             throw new \InvalidArgumentException('The CfP does not seem to have a CfP-Uri');
42 42
         }
43 43
 
Please login to merge, or discard this patch.
src/Parser/Lanyrd/Tags.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         $tags = $xpath->query(
38 38
             "//ul[contains(@class, \"tags\")]/li/a"
39 39
         );
40
-        if (! $tags || $tags->length == 0) {
40
+        if (!$tags || $tags->length == 0) {
41 41
             throw new \InvalidArgumentException('The CfP does not seem to have tags');
42 42
         }
43 43
 
Please login to merge, or discard this patch.
src/Parser/Lanyrd/LanyrdCfpParser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
         do {
47 47
             $dom = new \DOMDocument('1.0', 'UTF-8');
48
-            $dom->loadHTMLFile($uri . '?page=' . ($i+1));
48
+            $dom->loadHTMLFile($uri . '?page=' . ($i + 1));
49 49
             $dom->preserveWhiteSpace = false;
50 50
 
51 51
             $xpath = new \DOMXPath($dom);
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 
72 72
                     $eventPageUrl = $links->item(0)->attributes->getNamedItem('href')->textContent;
73 73
                     error_log($eventPageUrl);
74
-                    if (! $eventPageUrl) {
74
+                    if (!$eventPageUrl) {
75 75
                         continue;
76 76
                     }
77 77
                     $writer->write($lanyrdEntryParser->parse($eventPageUrl));
Please login to merge, or discard this patch.
src/Parser/Lanyrd/EventEndDate.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
         $endDate = $xpath->query("//div[contains(@class, 'vevent')]/*/abbr[contains(@class, 'dtend')]"); ///a/abbr[class='dtstart']
38
-        if (! $endDate || $endDate->length == 0) {
38
+        if (!$endDate || $endDate->length == 0) {
39 39
             throw new \InvalidArgumentException('The Event does not seem to have an end date');
40 40
         }
41 41
 
Please login to merge, or discard this patch.
src/Parser/Lanyrd/EventUri.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 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 EventUri');
41 41
         }
42 42
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
         $uriPath = $xpath->query("//a[contains(@title, 'visit their website')]");
53 53
 
54
-        if (! $uriPath || $uriPath->length == 0) {
54
+        if (!$uriPath || $uriPath->length == 0) {
55 55
             throw new \InvalidArgumentException('The CfP does not seem to have an EventUri');
56 56
         }
57 57
 
Please login to merge, or discard this patch.
src/Parser/Lanyrd/EventName.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
         $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/Location.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
         $locations = $xpath->query("//div[contains(@class, 'vevent')]/p[contains(@class, 'location')]/a"); ///a/abbr[class='dtstart']
38
-        if (! $locations || $locations->length == 0) {
38
+        if (!$locations || $locations->length == 0) {
39 39
             throw new \InvalidArgumentException('The Event does not seem to have an end date');
40 40
         }
41 41
         $location = [];
Please login to merge, or discard this patch.
src/Parser/Lanyrd/EventStartDate.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
         $startDate = $xpath->query("//div[contains(@class, 'vevent')]/*/abbr[contains(@class, 'dtstart')]"); ///a/abbr[class='dtstart']
38
-        if (! $startDate || $startDate->length == 0) {
38
+        if (!$startDate || $startDate->length == 0) {
39 39
             throw new \InvalidArgumentException('The Event does not seem to have a start date');
40 40
         }
41 41
 
Please login to merge, or discard this patch.