Completed
Pull Request — master (#28)
by Andreas
01:43
created
src/Parser/PapercallIo/Tags.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -32,6 +32,10 @@
 block discarded – undo
32 32
 class Tags
33 33
 {
34 34
 
35
+    /**
36
+     * @param \DOMDocument $dom
37
+     * @param \DOMXPath $xpath
38
+     */
35 39
     public function parse($dom, $xpath)
36 40
     {
37 41
         $tags = $xpath->query(
Please login to merge, or discard this 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/PapercallIo/Uri.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -32,6 +32,10 @@
 block discarded – undo
32 32
 class Uri
33 33
 {
34 34
 
35
+    /**
36
+     * @param \DOMDocument $dom
37
+     * @param \DOMXPath $xpath
38
+     */
35 39
     public function parse($dom, $xpath)
36 40
     {
37 41
         $uri = $xpath->query(
Please login to merge, or discard this 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
             "//strong[contains(@class, \"call-open\")]/following-sibling::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/PapercallIo/ClosingDate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
     {
51 51
         $xpath = new DOMXPath($node->ownerDocument);
52 52
         $closingDate = $xpath->query("//time/@datetime");
53
-        if (! $closingDate || $closingDate->length == 0) {
53
+        if (!$closingDate || $closingDate->length == 0) {
54 54
             throw new InvalidArgumentException('The CfP does not seem to have a closing date');
55 55
         }
56 56
 
Please login to merge, or discard this patch.
src/Parser/PapercallIoParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
         do {
66 66
             $dom = new DOMDocument('1.0', 'UTF-8');
67 67
             libxml_use_internal_errors(true);
68
-            $uri = sprintf($this->uri, $i+1);
68
+            $uri = sprintf($this->uri, $i + 1);
69 69
             var_dump($uri);
70 70
             $dom->loadHTMLFile($uri);
71 71
             libxml_use_internal_errors(false);
Please login to merge, or discard this patch.