@@ -66,9 +66,9 @@ |
||
66 | 66 | public function serialize() |
67 | 67 | { |
68 | 68 | return [ |
69 | - 'cdbid' => $this->cdbid, |
|
70 | - 'name' => $this->name->toNative(), |
|
71 | - 'address' => $this->address->serialize() |
|
69 | + 'cdbid' => $this->cdbid, |
|
70 | + 'name' => $this->name->toNative(), |
|
71 | + 'address' => $this->address->serialize() |
|
72 | 72 | ]; |
73 | 73 | } |
74 | 74 |
@@ -81,10 +81,10 @@ |
||
81 | 81 | public function serialize() |
82 | 82 | { |
83 | 83 | return [ |
84 | - 'streetAddress' => $this->streetAddress->toNative(), |
|
85 | - 'postalCode' => $this->postalCode->toNative(), |
|
86 | - 'addressLocality' => $this->locality->toNative(), |
|
87 | - 'addressCountry' => $this->countryCode, |
|
84 | + 'streetAddress' => $this->streetAddress->toNative(), |
|
85 | + 'postalCode' => $this->postalCode->toNative(), |
|
86 | + 'addressLocality' => $this->locality->toNative(), |
|
87 | + 'addressCountry' => $this->countryCode, |
|
88 | 88 | ]; |
89 | 89 | } |
90 | 90 |
@@ -48,7 +48,7 @@ |
||
48 | 48 | $valuePattern = '\€?\s*[\d,]+\s*\€?'; |
49 | 49 | |
50 | 50 | $pricePattern = |
51 | - "/(?<name>{$namePattern}):\s*(?<value>{$valuePattern})/u"; |
|
51 | + "/(?<name>{$namePattern}):\s*(?<value>{$valuePattern})/u"; |
|
52 | 52 | |
53 | 53 | $numberFormat = $this->numberFormatRepository->get('nl-BE'); |
54 | 54 | $currencyFormatter = new NumberFormatter( |
@@ -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 | } |