@@ -32,6 +32,10 @@ |
||
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( |
@@ -37,7 +37,7 @@ |
||
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 |
@@ -32,6 +32,10 @@ |
||
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( |
@@ -37,7 +37,7 @@ |
||
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 |
@@ -50,7 +50,7 @@ |
||
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 |
@@ -65,7 +65,7 @@ |
||
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); |