@@ -56,19 +56,19 @@ discard block |
||
56 | 56 | $xpath = new DOMXPath($dom); |
57 | 57 | $titlePath = $xpath->query("//h1[contains(@class, 'subheader__subtitle')]"); |
58 | 58 | |
59 | - if (! $titlePath || $titlePath->length == 0) { |
|
59 | + if (!$titlePath || $titlePath->length == 0) { |
|
60 | 60 | return $cfp; |
61 | 61 | } |
62 | 62 | |
63 | 63 | $location = trim($titlePath->item(0)->textContent); |
64 | 64 | $location = explode(' - ', $location); |
65 | 65 | |
66 | - if (! isset($location[1])) { |
|
66 | + if (!isset($location[1])) { |
|
67 | 67 | return $cfp; |
68 | 68 | } |
69 | 69 | |
70 | 70 | $dates = explode(',', $location[1]); |
71 | - if (count($dates) % 2 !== 0) { |
|
71 | + if (count($dates) % 2 !== 0) { |
|
72 | 72 | return $cfp; |
73 | 73 | } |
74 | 74 | |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | return $cfp; |
77 | 77 | } |
78 | 78 | |
79 | - $startDate = new DateTimeImmutable($dates[0] . ', ' . $dates[1] . ' 00:00:00', $timezone ); |
|
79 | + $startDate = new DateTimeImmutable($dates[0].', '.$dates[1].' 00:00:00', $timezone); |
|
80 | 80 | $cfp->eventStartDate = $startDate; |
81 | 81 | |
82 | 82 | return $cfp; |
@@ -63,7 +63,7 @@ |
||
63 | 63 | |
64 | 64 | $dom = new DOMDocument('1.0', 'UTF-8'); |
65 | 65 | libxml_use_internal_errors(true); |
66 | - $uri = sprintf($this->uri, $i+1); |
|
66 | + $uri = sprintf($this->uri, $i + 1); |
|
67 | 67 | $dom->loadHTMLFile($uri); |
68 | 68 | libxml_use_internal_errors(false); |
69 | 69 | $dom->preserveWhiteSpace = false; |
@@ -53,6 +53,6 @@ |
||
53 | 53 | |
54 | 54 | public function __toString() : string |
55 | 55 | { |
56 | - return $this->getLatitude() . ' ' . $this->getLongitude(); |
|
56 | + return $this->getLatitude().' '.$this->getLongitude(); |
|
57 | 57 | } |
58 | 58 | } |
@@ -60,15 +60,15 @@ |
||
60 | 60 | { |
61 | 61 | /** @var \Callingallpapers\Entity\Cfp $cfp */ |
62 | 62 | foreach ($this->cfps as $cfp) { |
63 | - if (! $cfp->uri) { |
|
63 | + if (!$cfp->uri) { |
|
64 | 64 | return false; |
65 | 65 | } |
66 | 66 | |
67 | - if (! $cfp->conferenceName) { |
|
67 | + if (!$cfp->conferenceName) { |
|
68 | 68 | return false; |
69 | 69 | } |
70 | 70 | |
71 | - if (! $cfp->dateEnd) { |
|
71 | + if (!$cfp->dateEnd) { |
|
72 | 72 | return false; |
73 | 73 | } |
74 | 74 | } |