Completed
Pull Request — master (#14)
by Andreas
02:14
created
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.
src/Writer/ApiCfpWriter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -123,10 +123,10 @@
 block discarded – undo
123 123
         $this->output->writeln(sprintf(
124 124
             'Conference "%1$s" succcessfully %2$s.',
125 125
             $cfp->conferenceName,
126
-            ($exists)?'updated':'created'
126
+            ($exists) ? 'updated' : 'created'
127 127
         ));
128 128
 
129
-        return (isset($response) && ($response->getStatusCode() === 200 || $response->getStatusCode() === 201))?'Success':'Failure';
129
+        return (isset($response) && ($response->getStatusCode() === 200 || $response->getStatusCode() === 201)) ? 'Success' : 'Failure';
130 130
     }
131 131
 
132 132
     public function setOutput(OutputInterface $output)
Please login to merge, or discard this patch.
src/Parser/Lanyrd/Entry.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/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.