@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | |
39 | 39 | if (isset($conference['country'])) { |
40 | 40 | $geolocation = $this->geolocation->getLocationForAddress( |
41 | - $conference['country'] . ', ' . $cfp->location |
|
41 | + $conference['country'].', '.$cfp->location |
|
42 | 42 | ); |
43 | 43 | |
44 | 44 | $cfp->latitude = $geolocation->getLatitude(); |
@@ -52,19 +52,19 @@ discard block |
||
52 | 52 | |
53 | 53 | $cfp->conferenceName = $conference['name']; |
54 | 54 | $cfp->eventStartDate = new DateTimeImmutable( |
55 | - $conference['startDate'] . ' 08:00:00', |
|
55 | + $conference['startDate'].' 08:00:00', |
|
56 | 56 | new DateTimeZone($cfp->timezone) |
57 | 57 | ); |
58 | - if (! isset($conference['endDate'])) { |
|
58 | + if (!isset($conference['endDate'])) { |
|
59 | 59 | $conference['endDate'] = $conference['startDate']; |
60 | 60 | } |
61 | 61 | $cfp->eventEndDate = new DateTimeImmutable( |
62 | - $conference['endDate'] . ' 17:00:00', |
|
62 | + $conference['endDate'].' 17:00:00', |
|
63 | 63 | new DateTimeZone($cfp->timezone) |
64 | 64 | ); |
65 | 65 | |
66 | 66 | $cfp->dateEnd = new DateTimeImmutable( |
67 | - $conference['cfpEndDate'] . ' 23:59:59', |
|
67 | + $conference['cfpEndDate'].' 23:59:59', |
|
68 | 68 | new DateTimeZone($cfp->timezone) |
69 | 69 | ); |
70 | 70 |
@@ -50,14 +50,14 @@ discard block |
||
50 | 50 | foreach ($nodes as $node) { |
51 | 51 | $priority = $node->getElementsByTagName('priority'); |
52 | 52 | $priority = $priority->item(0); |
53 | - if ((float)$priority->textContent <= 0.6) { |
|
53 | + if ((float) $priority->textContent <= 0.6) { |
|
54 | 54 | continue; |
55 | 55 | } |
56 | 56 | |
57 | 57 | $loc = $node->getElementsByTagName('loc'); |
58 | 58 | $loc = $loc->item(0); |
59 | 59 | |
60 | - if (! $loc->textContent) { |
|
60 | + if (!$loc->textContent) { |
|
61 | 61 | continue; |
62 | 62 | } |
63 | 63 | |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | $writer->write($cfp, 'Sessionize'); |
67 | 67 | $cfpList->append($cfp); |
68 | 68 | } catch (\Exception $e) { |
69 | - error_log($e->getMEssage() . ' ' . $loc->textContent); |
|
69 | + error_log($e->getMEssage().' '.$loc->textContent); |
|
70 | 70 | } |
71 | 71 | } |
72 | 72 |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | { |
31 | 31 | $closingDateHolder = $xpath->query('//div[./div/span[contains(text(), "Call closes at")]]'); |
32 | 32 | |
33 | - if (! $closingDateHolder || $closingDateHolder->length == 0) { |
|
33 | + if (!$closingDateHolder || $closingDateHolder->length == 0) { |
|
34 | 34 | throw new InvalidArgumentException('The CfP does not seem to have a closing date'); |
35 | 35 | } |
36 | 36 | |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | |
40 | 40 | $closingHour = $this->clearClosingHour($closingHour); |
41 | 41 | |
42 | - return new DateTimeImmutable($closingDay . ' ' . $closingHour, $this->timezone); |
|
42 | + return new DateTimeImmutable($closingDay.' '.$closingHour, $this->timezone); |
|
43 | 43 | } |
44 | 44 | |
45 | 45 | private function clearClosingHour(string $closingHour) : string |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | /** |
6 | 6 | * Copyright Andrea Heigl <[email protected]> |
@@ -29,23 +29,23 @@ discard block |
||
29 | 29 | //$startDate = $xpath->query('//div[contains(text()[2], "event starts")]/following-sibling::h2'); |
30 | 30 | $startDate = $xpath->query('//div[contains(., "event starts")]'); |
31 | 31 | |
32 | - if (! $startDate || $startDate->length == 0) { |
|
32 | + if (!$startDate || $startDate->length == 0) { |
|
33 | 33 | // This expression does not work. It looks like the reason is the array-notation... |
34 | 34 | //$startDate = $xpath->query('//div[contains(text()[2], "event date")]/following-sibling::h2'); |
35 | 35 | $startDate = $xpath->query('//div[contains(., "event date")]'); |
36 | 36 | } |
37 | - if (! $startDate || $startDate->length == 0) { |
|
37 | + if (!$startDate || $startDate->length == 0) { |
|
38 | 38 | // This expression does not work. It looks like the reason is the array-notation... |
39 | 39 | //$startDate = $xpath->query('//div[contains(text()[2], "event date")]/following-sibling::h2'); |
40 | 40 | $startDate = $xpath->query('//div[contains(., "planned future dates")]'); |
41 | 41 | } |
42 | - if (! $startDate || $startDate->length == 0) { |
|
42 | + if (!$startDate || $startDate->length == 0) { |
|
43 | 43 | throw new \InvalidArgumentException('The Event does not seem to have a start date-identifier'); |
44 | 44 | } |
45 | 45 | |
46 | - $startDate = $xpath->query('h2', $startDate->item($startDate->length-1)->parentNode); |
|
46 | + $startDate = $xpath->query('h2', $startDate->item($startDate->length - 1)->parentNode); |
|
47 | 47 | |
48 | - if (! $startDate || $startDate->length == 0) { |
|
48 | + if (!$startDate || $startDate->length == 0) { |
|
49 | 49 | throw new \InvalidArgumentException('The Event does not seem to have a start date'); |
50 | 50 | } |
51 | 51 |