@@ -48,7 +48,7 @@ |
||
| 48 | 48 | $contents = new CfpList(); |
| 49 | 49 | |
| 50 | 50 | foreach ($content['events'] as $event) { |
| 51 | - if (! $event['cfp_url']) { |
|
| 51 | + if (!$event['cfp_url']) { |
|
| 52 | 52 | continue; |
| 53 | 53 | } |
| 54 | 54 | $info = new Cfp(); |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | |
| 68 | 68 | $start = new \DateTime($input->getOption('start')); |
| 69 | 69 | |
| 70 | - if (! $start instanceof \DateTime) { |
|
| 70 | + if (!$start instanceof \DateTime) { |
|
| 71 | 71 | throw new \InvalidArgumentException('The given date could not be parsed'); |
| 72 | 72 | } |
| 73 | 73 | |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | throw new UnknownWriterException('The requested writer could not be created'); |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | - if (! $writer instanceof WriterInterface) { |
|
| 45 | + if (!$writer instanceof WriterInterface) { |
|
| 46 | 46 | throw new InvalidWriterException('The requested writer is not of the expected type'); |
| 47 | 47 | } |
| 48 | 48 | |
@@ -118,7 +118,7 @@ |
||
| 118 | 118 | $this->output->writeln(sprintf( |
| 119 | 119 | 'Conference "%1$s" succcessfully %2$s.', |
| 120 | 120 | $cfp->conferenceName, |
| 121 | - ($exists)?'updated':'created' |
|
| 121 | + ($exists) ? 'updated' : 'created' |
|
| 122 | 122 | )); |
| 123 | 123 | |
| 124 | 124 | return isset($response) && ($response->getStatusCode() === 200 || $response->getStatusCode() === 201); |
@@ -35,7 +35,7 @@ |
||
| 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 | |
@@ -37,7 +37,7 @@ |
||
| 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 | |
@@ -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 | |
@@ -45,7 +45,7 @@ discard block |
||
| 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 |
||
| 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)); |
@@ -35,7 +35,7 @@ |
||
| 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 | |