@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | } |
59 | 59 | |
60 | 60 | if ($type->is(CalendarType::SINGLE()) && empty($endDate)) { |
61 | - throw new \UnexpectedValueException('End date can not be empty for calendar type: ' . $type . '.'); |
|
61 | + throw new \UnexpectedValueException('End date can not be empty for calendar type: ' . $type . '.'); |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | if ($type->is(CalendarType::PERIODIC()) && (empty($startDate) || empty($endDate))) { |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | ); |
94 | 94 | |
95 | 95 | $calendar = [ |
96 | - 'type' => $this->type, |
|
96 | + 'type' => $this->type, |
|
97 | 97 | ]; |
98 | 98 | |
99 | 99 | empty($this->startDate) ?: $calendar['startDate'] = $this->startDate->format(DateTime::ATOM); |
@@ -201,9 +201,9 @@ discard block |
||
201 | 201 | $jsonLd['subEvent'] = array(); |
202 | 202 | foreach ($timestamps as $timestamp) { |
203 | 203 | $jsonLd['subEvent'][] = array( |
204 | - '@type' => 'Event', |
|
205 | - 'startDate' => $timestamp->getStartDate()->format(DateTime::ATOM), |
|
206 | - 'endDate' => $timestamp->getEndDate()->format(DateTime::ATOM), |
|
204 | + '@type' => 'Event', |
|
205 | + 'startDate' => $timestamp->getStartDate()->format(DateTime::ATOM), |
|
206 | + 'endDate' => $timestamp->getEndDate()->format(DateTime::ATOM), |
|
207 | 207 | ); |
208 | 208 | } |
209 | 209 | } |