@@ -36,14 +36,14 @@ discard block |
||
36 | 36 | if ($cdbCalendar instanceof \CultureFeed_Cdb_Data_Calendar_PeriodList) { |
37 | 37 | /** @var \CultureFeed_Cdb_Data_Calendar_Period $period */ |
38 | 38 | $period = $cdbCalendar->current(); |
39 | - $startDateString = $period->getDateFrom() . 'T00:00:00'; |
|
39 | + $startDateString = $period->getDateFrom().'T00:00:00'; |
|
40 | 40 | } else if ($cdbCalendar instanceof \CultureFeed_Cdb_Data_Calendar_TimestampList) { |
41 | 41 | /** @var \CultureFeed_Cdb_Data_Calendar_Timestamp $timestamp */ |
42 | 42 | $timestamp = $cdbCalendar->current(); |
43 | 43 | if ($timestamp->getStartTime()) { |
44 | - $startDateString = $timestamp->getDate() . 'T' . $timestamp->getStartTime(); |
|
44 | + $startDateString = $timestamp->getDate().'T'.$timestamp->getStartTime(); |
|
45 | 45 | } else { |
46 | - $startDateString = $timestamp->getDate() . 'T00:00:00'; |
|
46 | + $startDateString = $timestamp->getDate().'T00:00:00'; |
|
47 | 47 | } |
48 | 48 | } |
49 | 49 | $startDate = !empty($startDateString) ? DateTimeFactory::dateTimeFromDateString($startDateString) : null; |
@@ -56,17 +56,17 @@ discard block |
||
56 | 56 | if ($cdbCalendar instanceof \CultureFeed_Cdb_Data_Calendar_PeriodList) { |
57 | 57 | /** @var \CultureFeed_Cdb_Data_Calendar_Period $period */ |
58 | 58 | $period = $cdbCalendar->current(); |
59 | - $endDateString = $period->getDateTo() . 'T00:00:00'; |
|
59 | + $endDateString = $period->getDateTo().'T00:00:00'; |
|
60 | 60 | } else if ($cdbCalendar instanceof \CultureFeed_Cdb_Data_Calendar_TimestampList) { |
61 | 61 | $firstTimestamp = $cdbCalendar->current(); |
62 | 62 | /** @var \CultureFeed_Cdb_Data_Calendar_Timestamp $timestamp */ |
63 | 63 | $cdbCalendarAsArray = iterator_to_array($cdbCalendar); |
64 | 64 | $timestamp = iterator_count($cdbCalendar) > 1 ? end($cdbCalendarAsArray) : $firstTimestamp; |
65 | 65 | if ($timestamp->getEndTime()) { |
66 | - $endDateString = $timestamp->getDate() . 'T' . $timestamp->getEndTime(); |
|
66 | + $endDateString = $timestamp->getDate().'T'.$timestamp->getEndTime(); |
|
67 | 67 | } else { |
68 | 68 | $endTime = $timestamp->getStartTime() ? $timestamp->getStartTime() : '00:00:00'; |
69 | - $endDateString = $timestamp->getDate() . 'T' . $endTime; |
|
69 | + $endDateString = $timestamp->getDate().'T'.$endTime; |
|
70 | 70 | } |
71 | 71 | } |
72 | 72 | $endDate = !empty($endDateString) ? DateTimeFactory::dateTimeFromDateString($endDateString) : null; |
@@ -83,13 +83,13 @@ discard block |
||
83 | 83 | $cdbCalendar->next(); |
84 | 84 | |
85 | 85 | if ($timestamp->getStartTime()) { |
86 | - $startDateString = $timestamp->getDate() . 'T' . $timestamp->getStartTime(); |
|
86 | + $startDateString = $timestamp->getDate().'T'.$timestamp->getStartTime(); |
|
87 | 87 | |
88 | 88 | if ($timestamp->getEndTime()) { |
89 | - $endDateString = $timestamp->getDate() . 'T' . $timestamp->getEndTime(); |
|
89 | + $endDateString = $timestamp->getDate().'T'.$timestamp->getEndTime(); |
|
90 | 90 | } else { |
91 | 91 | $endTime = $timestamp->getStartTime() ? $timestamp->getStartTime() : '00:00:00'; |
92 | - $endDateString = $timestamp->getDate() . 'T' . $endTime; |
|
92 | + $endDateString = $timestamp->getDate().'T'.$endTime; |
|
93 | 93 | } |
94 | 94 | } |
95 | 95 | |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | $openingHour = $mergedOpeningHour->getOpeningHours()[0]; |
205 | 205 | $openingHoursAsArray[] = [ |
206 | 206 | 'dayOfWeek' => array_map( |
207 | - function (WeekDay $weekDay) { |
|
207 | + function(WeekDay $weekDay) { |
|
208 | 208 | return strtolower($weekDay->toNative()); |
209 | 209 | }, |
210 | 210 | $mergedOpeningHour->getWeekDays() |
@@ -11,7 +11,7 @@ |
||
11 | 11 | public function filter($string) |
12 | 12 | { |
13 | 13 | if (!is_string($string)) { |
14 | - throw new \InvalidArgumentException('Argument should be string, got ' . gettype($string) . ' instead.'); |
|
14 | + throw new \InvalidArgumentException('Argument should be string, got '.gettype($string).' instead.'); |
|
15 | 15 | } |
16 | 16 | |
17 | 17 | return preg_replace("/(\\n)+/", " ", $string); |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | |
67 | 67 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
68 | 68 | 'CultuurNet\UDB3\UsedKeywordsMemory\Created', |
69 | - function (array $serializedObject) { |
|
69 | + function(array $serializedObject) { |
|
70 | 70 | $serializedObject['class'] = UsedLabelsMemoryCreated::class; |
71 | 71 | |
72 | 72 | return $serializedObject; |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | |
76 | 76 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
77 | 77 | 'CultuurNet\UDB3\UsedKeywordsMemory\KeywordUsed', |
78 | - function (array $serializedObject) { |
|
78 | + function(array $serializedObject) { |
|
79 | 79 | $serializedObject['class'] = LabelUsed::class; |
80 | 80 | |
81 | 81 | $serializedObject = self::replaceKeywordWithLabel($serializedObject); |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | |
91 | 91 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
92 | 92 | 'CultuurNet\UDB3\Event\TitleTranslated', |
93 | - function (array $serializedObject) { |
|
93 | + function(array $serializedObject) { |
|
94 | 94 | $serializedObject['class'] = TitleTranslated::class; |
95 | 95 | |
96 | 96 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | |
102 | 102 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
103 | 103 | 'CultuurNet\UDB3\Event\DescriptionTranslated', |
104 | - function (array $serializedObject) { |
|
104 | + function(array $serializedObject) { |
|
105 | 105 | $serializedObject['class'] = DescriptionTranslated::class; |
106 | 106 | |
107 | 107 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -116,49 +116,49 @@ discard block |
||
116 | 116 | |
117 | 117 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
118 | 118 | 'CultuurNet\UDB3\Label\Events\MadeInvisible', |
119 | - function (array $serializedObject) use ($labelRepository) { |
|
119 | + function(array $serializedObject) use ($labelRepository) { |
|
120 | 120 | return self::addLabelName($serializedObject, $labelRepository); |
121 | 121 | } |
122 | 122 | ); |
123 | 123 | |
124 | 124 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
125 | 125 | 'CultuurNet\UDB3\Label\Events\MadeVisible', |
126 | - function (array $serializedObject) use ($labelRepository) { |
|
126 | + function(array $serializedObject) use ($labelRepository) { |
|
127 | 127 | return self::addLabelName($serializedObject, $labelRepository); |
128 | 128 | } |
129 | 129 | ); |
130 | 130 | |
131 | 131 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
132 | 132 | 'CultuurNet\UDB3\Label\Events\MadePrivate', |
133 | - function (array $serializedObject) use ($labelRepository) { |
|
133 | + function(array $serializedObject) use ($labelRepository) { |
|
134 | 134 | return self::addLabelName($serializedObject, $labelRepository); |
135 | 135 | } |
136 | 136 | ); |
137 | 137 | |
138 | 138 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
139 | 139 | 'CultuurNet\UDB3\Label\Events\MadePublic', |
140 | - function (array $serializedObject) use ($labelRepository) { |
|
140 | + function(array $serializedObject) use ($labelRepository) { |
|
141 | 141 | return self::addLabelName($serializedObject, $labelRepository); |
142 | 142 | } |
143 | 143 | ); |
144 | 144 | |
145 | 145 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
146 | 146 | 'CultuurNet\UDB3\Organizer\Events\LabelAdded', |
147 | - function (array $serializedObject) use ($labelRepository) { |
|
147 | + function(array $serializedObject) use ($labelRepository) { |
|
148 | 148 | return self::fixOrganizerLabelEvent($serializedObject, $labelRepository); |
149 | 149 | } |
150 | 150 | ); |
151 | 151 | |
152 | 152 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
153 | 153 | 'CultuurNet\UDB3\Organizer\Events\LabelRemoved', |
154 | - function (array $serializedObject) use ($labelRepository) { |
|
154 | + function(array $serializedObject) use ($labelRepository) { |
|
155 | 155 | return self::fixOrganizerLabelEvent($serializedObject, $labelRepository); |
156 | 156 | } |
157 | 157 | ); |
158 | 158 | |
159 | 159 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
160 | 160 | 'CultuurNet\UDB3\Event\Events\EventWasLabelled', |
161 | - function (array $serializedObject) { |
|
161 | + function(array $serializedObject) { |
|
162 | 162 | $serializedObject['class'] = LabelAdded::class; |
163 | 163 | |
164 | 164 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | |
170 | 170 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
171 | 171 | 'CultuurNet\UDB3\Event\EventWasTagged', |
172 | - function (array $serializedObject) { |
|
172 | + function(array $serializedObject) { |
|
173 | 173 | $serializedObject['class'] = LabelAdded::class; |
174 | 174 | |
175 | 175 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | |
183 | 183 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
184 | 184 | 'CultuurNet\UDB3\Event\TagErased', |
185 | - function (array $serializedObject) { |
|
185 | + function(array $serializedObject) { |
|
186 | 186 | $serializedObject['class'] = LabelRemoved::class; |
187 | 187 | |
188 | 188 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | |
196 | 196 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
197 | 197 | 'CultuurNet\UDB3\Event\Events\Unlabelled', |
198 | - function (array $serializedObject) { |
|
198 | + function(array $serializedObject) { |
|
199 | 199 | $serializedObject['class'] = LabelRemoved::class; |
200 | 200 | |
201 | 201 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | |
207 | 207 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
208 | 208 | 'CultuurNet\UDB3\Event\Events\LabelsApplied', |
209 | - function (array $serializedObject) { |
|
209 | + function(array $serializedObject) { |
|
210 | 210 | $serializedObject['class'] = LabelsMerged::class; |
211 | 211 | |
212 | 212 | $keywordsString = $serializedObject['payload']['keywords_string']; |
@@ -228,9 +228,9 @@ discard block |
||
228 | 228 | } |
229 | 229 | |
230 | 230 | $labels = array_map( |
231 | - function (Label $label) { |
|
231 | + function(Label $label) { |
|
232 | 232 | return [ |
233 | - 'text' => (string) $label, |
|
233 | + 'text' => (string)$label, |
|
234 | 234 | 'visible' => $label->isVisible(), |
235 | 235 | ]; |
236 | 236 | }, |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | |
251 | 251 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
252 | 252 | 'CultuurNet\UDB3\Event\EventImportedFromUDB2', |
253 | - function (array $serializedObject) { |
|
253 | + function(array $serializedObject) { |
|
254 | 254 | $serializedObject['class'] = EventImportedFromUDB2::class; |
255 | 255 | |
256 | 256 | return $serializedObject; |
@@ -275,7 +275,7 @@ discard block |
||
275 | 275 | foreach ($refactoredEventEvents as $refactoredEventEvent) { |
276 | 276 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
277 | 277 | $refactoredEventEvent, |
278 | - function (array $serializedObject) { |
|
278 | + function(array $serializedObject) { |
|
279 | 279 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
280 | 280 | return $serializedObject; |
281 | 281 | } |
@@ -299,7 +299,7 @@ discard block |
||
299 | 299 | foreach ($refactoredPlaceEvents as $refactoredPlaceEvent) { |
300 | 300 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
301 | 301 | $refactoredPlaceEvent, |
302 | - function (array $serializedObject) { |
|
302 | + function(array $serializedObject) { |
|
303 | 303 | $serializedObject = self::replacePlaceIdWithItemId($serializedObject); |
304 | 304 | return $serializedObject; |
305 | 305 | } |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | |
186 | 186 | foreach ($labelCollection->asArray() as $label) { |
187 | 187 | $this->writeRepository->save( |
188 | - new LabelName((string) $label), |
|
188 | + new LabelName((string)$label), |
|
189 | 189 | $relationType, |
190 | 190 | $relationId |
191 | 191 | ); |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | { |
201 | 201 | $labelRelation = null; |
202 | 202 | |
203 | - $labelName = new LabelName((string) $labelEvent->getLabel()); |
|
203 | + $labelName = new LabelName((string)$labelEvent->getLabel()); |
|
204 | 204 | $relationType = $this->offerTypeResolver->getRelationType($labelEvent); |
205 | 205 | $relationId = new StringLiteral($labelEvent->getItemId()); |
206 | 206 |
@@ -15,13 +15,13 @@ |
||
15 | 15 | ); |
16 | 16 | |
17 | 17 | $visibleLabels = $labelCollection->filter( |
18 | - function (Label $label) { |
|
18 | + function(Label $label) { |
|
19 | 19 | return $label->isVisible(); |
20 | 20 | } |
21 | 21 | )->toStrings(); |
22 | 22 | |
23 | 23 | $hiddenLabels = $labelCollection->filter( |
24 | - function (Label $label) { |
|
24 | + function(Label $label) { |
|
25 | 25 | return !$label->isVisible(); |
26 | 26 | } |
27 | 27 | )->toStrings(); |
@@ -173,14 +173,14 @@ discard block |
||
173 | 173 | protected function columns() |
174 | 174 | { |
175 | 175 | $formatter = $this; |
176 | - $contactPoint = function (\stdClass $event) use ($formatter) { |
|
176 | + $contactPoint = function(\stdClass $event) use ($formatter) { |
|
177 | 177 | return $formatter->contactPoint($event); |
178 | 178 | }; |
179 | 179 | |
180 | 180 | return [ |
181 | 181 | 'id' => [ |
182 | 182 | 'name' => 'id', |
183 | - 'include' => function ($event) { |
|
183 | + 'include' => function($event) { |
|
184 | 184 | $eventUri = $event->{'@id'}; |
185 | 185 | $uriParts = explode('/', $eventUri); |
186 | 186 | $eventId = array_pop($uriParts); |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | ], |
192 | 192 | 'name' => [ |
193 | 193 | 'name' => 'titel', |
194 | - 'include' => function ($event) { |
|
194 | + 'include' => function($event) { |
|
195 | 195 | if ($event->name) { |
196 | 196 | return reset($event->name); |
197 | 197 | } |
@@ -200,14 +200,14 @@ discard block |
||
200 | 200 | ], |
201 | 201 | 'creator' => [ |
202 | 202 | 'name' => 'auteur', |
203 | - 'include' => function ($event) { |
|
203 | + 'include' => function($event) { |
|
204 | 204 | return $event->creator; |
205 | 205 | }, |
206 | 206 | 'property' => 'creator' |
207 | 207 | ], |
208 | 208 | 'bookingInfo.price' => [ |
209 | 209 | 'name' => 'prijs', |
210 | - 'include' => function ($event) { |
|
210 | + 'include' => function($event) { |
|
211 | 211 | if (property_exists($event, 'bookingInfo') && is_array($event->bookingInfo)) { |
212 | 212 | $first = reset($event->bookingInfo); |
213 | 213 | if (is_object($first) && property_exists($first, 'price')) { |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | ], |
220 | 220 | 'kansentarief' => [ |
221 | 221 | 'name' => 'kansentarief', |
222 | - 'include' => function ($event) { |
|
222 | + 'include' => function($event) { |
|
223 | 223 | $eventUri = $event->{'@id'}; |
224 | 224 | $uriParts = explode('/', $eventUri); |
225 | 225 | $eventId = array_pop($uriParts); |
@@ -228,18 +228,18 @@ discard block |
||
228 | 228 | if ($uitpasInfo) { |
229 | 229 | $uitpasInfo = $this->uitpasInfoFormatter->format($uitpasInfo); |
230 | 230 | |
231 | - $cardSystems = array_reduce($uitpasInfo['prices'], function ($cardSystems, $tariff) { |
|
231 | + $cardSystems = array_reduce($uitpasInfo['prices'], function($cardSystems, $tariff) { |
|
232 | 232 | $cardSystem = isset($cardSystems[$tariff['cardSystem']]) ? $cardSystems[$tariff['cardSystem']] : ''; |
233 | 233 | $cardSystem = empty($cardSystem) |
234 | - ? $tariff['cardSystem'] .': € ' . $tariff['price'] |
|
235 | - : $cardSystem . ' / € ' . $tariff['price']; |
|
234 | + ? $tariff['cardSystem'].': € '.$tariff['price'] |
|
235 | + : $cardSystem.' / € '.$tariff['price']; |
|
236 | 236 | |
237 | 237 | $cardSystems[$tariff['cardSystem']] = $cardSystem; |
238 | 238 | return $cardSystems; |
239 | 239 | }, []); |
240 | 240 | |
241 | - $formattedTariffs = array_reduce($cardSystems, function ($tariffs, $cardSystemPrices) { |
|
242 | - return $tariffs ? $tariffs . ' | ' . $cardSystemPrices : $cardSystemPrices; |
|
241 | + $formattedTariffs = array_reduce($cardSystems, function($tariffs, $cardSystemPrices) { |
|
242 | + return $tariffs ? $tariffs.' | '.$cardSystemPrices : $cardSystemPrices; |
|
243 | 243 | }); |
244 | 244 | |
245 | 245 | if (!empty($formattedTariffs)) { |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | ], |
252 | 252 | 'bookingInfo.url' => [ |
253 | 253 | 'name' => 'ticket link', |
254 | - 'include' => function ($event) { |
|
254 | + 'include' => function($event) { |
|
255 | 255 | if (property_exists($event, 'bookingInfo')) { |
256 | 256 | $first = reset($event->bookingInfo); |
257 | 257 | if (is_object($first) && property_exists($first, 'url')) { |
@@ -263,7 +263,7 @@ discard block |
||
263 | 263 | ], |
264 | 264 | 'description' => [ |
265 | 265 | 'name' => 'omschrijving', |
266 | - 'include' => function ($event) { |
|
266 | + 'include' => function($event) { |
|
267 | 267 | if (property_exists($event, 'description')) { |
268 | 268 | $description = reset($event->description); |
269 | 269 | |
@@ -283,7 +283,7 @@ discard block |
||
283 | 283 | ], |
284 | 284 | 'organizer' => [ |
285 | 285 | 'name' => 'organisatie', |
286 | - 'include' => function ($event) { |
|
286 | + 'include' => function($event) { |
|
287 | 287 | if (property_exists($event, 'organizer') && |
288 | 288 | isset($event->organizer->name) |
289 | 289 | ) { |
@@ -294,14 +294,14 @@ discard block |
||
294 | 294 | ], |
295 | 295 | 'calendarSummary' => [ |
296 | 296 | 'name' => 'tijdsinformatie', |
297 | - 'include' => function ($event) { |
|
297 | + 'include' => function($event) { |
|
298 | 298 | return $event->calendarSummary; |
299 | 299 | }, |
300 | 300 | 'property' => 'calendarSummary' |
301 | 301 | ], |
302 | 302 | 'labels' => [ |
303 | 303 | 'name' => 'labels', |
304 | - 'include' => function ($event) { |
|
304 | + 'include' => function($event) { |
|
305 | 305 | if (isset($event->labels)) { |
306 | 306 | return implode(';', $event->labels); |
307 | 307 | } |
@@ -310,14 +310,14 @@ discard block |
||
310 | 310 | ], |
311 | 311 | 'typicalAgeRange' => [ |
312 | 312 | 'name' => 'leeftijd', |
313 | - 'include' => function ($event) { |
|
313 | + 'include' => function($event) { |
|
314 | 314 | return $event->typicalAgeRange; |
315 | 315 | }, |
316 | 316 | 'property' => 'typicalAgeRange' |
317 | 317 | ], |
318 | 318 | 'performer' => [ |
319 | 319 | 'name' => 'uitvoerders', |
320 | - 'include' => function ($event) { |
|
320 | + 'include' => function($event) { |
|
321 | 321 | if (property_exists($event, 'performer')) { |
322 | 322 | $performerNames = []; |
323 | 323 | foreach ($event->performer as $performer) { |
@@ -331,7 +331,7 @@ discard block |
||
331 | 331 | ], |
332 | 332 | 'language' => [ |
333 | 333 | 'name' => 'taal van het aanbod', |
334 | - 'include' => function ($event) { |
|
334 | + 'include' => function($event) { |
|
335 | 335 | if (property_exists($event, 'language')) { |
336 | 336 | return implode(';', $event->language); |
337 | 337 | } |
@@ -340,7 +340,7 @@ discard block |
||
340 | 340 | ], |
341 | 341 | 'terms.theme' => [ |
342 | 342 | 'name' => 'thema', |
343 | - 'include' => function ($event) { |
|
343 | + 'include' => function($event) { |
|
344 | 344 | if (property_exists($event, 'terms')) { |
345 | 345 | foreach ($event->terms as $term) { |
346 | 346 | if ($term->domain && $term->label && $term->domain == 'theme') { |
@@ -353,7 +353,7 @@ discard block |
||
353 | 353 | ], |
354 | 354 | 'terms.eventtype' => [ |
355 | 355 | 'name' => 'soort aanbod', |
356 | - 'include' => function ($event) { |
|
356 | + 'include' => function($event) { |
|
357 | 357 | if (property_exists($event, 'terms')) { |
358 | 358 | foreach ($event->terms as $term) { |
359 | 359 | if ($term->domain && $term->label && $term->domain == 'eventtype') { |
@@ -366,7 +366,7 @@ discard block |
||
366 | 366 | ], |
367 | 367 | 'created' => [ |
368 | 368 | 'name' => 'datum aangemaakt', |
369 | - 'include' => function ($event) { |
|
369 | + 'include' => function($event) { |
|
370 | 370 | if (!empty($event->created)) { |
371 | 371 | return $this->formatDate($event->created); |
372 | 372 | } else { |
@@ -377,7 +377,7 @@ discard block |
||
377 | 377 | ], |
378 | 378 | 'modified' => [ |
379 | 379 | 'name' => 'datum laatste aanpassing', |
380 | - 'include' => function ($event) { |
|
380 | + 'include' => function($event) { |
|
381 | 381 | if (!empty($event->modified)) { |
382 | 382 | return $this->formatDate($event->modified); |
383 | 383 | } else { |
@@ -388,7 +388,7 @@ discard block |
||
388 | 388 | ], |
389 | 389 | 'available' => [ |
390 | 390 | 'name' => 'embargodatum', |
391 | - 'include' => function ($event) { |
|
391 | + 'include' => function($event) { |
|
392 | 392 | if (!empty($event->available)) { |
393 | 393 | return $this->formatDateWithoutTime($event->available); |
394 | 394 | } else { |
@@ -399,7 +399,7 @@ discard block |
||
399 | 399 | ], |
400 | 400 | 'startDate' => [ |
401 | 401 | 'name' => 'startdatum', |
402 | - 'include' => function ($event) { |
|
402 | + 'include' => function($event) { |
|
403 | 403 | if (!empty($event->startDate)) { |
404 | 404 | return $this->formatDate($event->startDate); |
405 | 405 | } else { |
@@ -410,7 +410,7 @@ discard block |
||
410 | 410 | ], |
411 | 411 | 'endDate' => [ |
412 | 412 | 'name' => 'einddatum', |
413 | - 'include' => function ($event) { |
|
413 | + 'include' => function($event) { |
|
414 | 414 | if (!empty($event->endDate)) { |
415 | 415 | return $this->formatDate($event->endDate); |
416 | 416 | } else { |
@@ -421,14 +421,14 @@ discard block |
||
421 | 421 | ], |
422 | 422 | 'calendarType' => [ |
423 | 423 | 'name' => 'tijd type', |
424 | - 'include' => function ($event) { |
|
424 | + 'include' => function($event) { |
|
425 | 425 | return $event->calendarType; |
426 | 426 | }, |
427 | 427 | 'property' => 'calendarType' |
428 | 428 | ], |
429 | 429 | 'location' => [ |
430 | 430 | 'name' => 'locatie naam', |
431 | - 'include' => function ($event) { |
|
431 | + 'include' => function($event) { |
|
432 | 432 | if (property_exists($event, 'location') && isset($event->location->name)) { |
433 | 433 | return reset($event->location->name); |
434 | 434 | } |
@@ -437,7 +437,7 @@ discard block |
||
437 | 437 | ], |
438 | 438 | 'address.streetAddress' => [ |
439 | 439 | 'name' => 'straat', |
440 | - 'include' => function ($event) { |
|
440 | + 'include' => function($event) { |
|
441 | 441 | if (isset($event->location->address->streetAddress)) { |
442 | 442 | return $event->location->address->streetAddress; |
443 | 443 | } |
@@ -446,7 +446,7 @@ discard block |
||
446 | 446 | ], |
447 | 447 | 'address.postalCode' => [ |
448 | 448 | 'name' => 'postcode', |
449 | - 'include' => function ($event) { |
|
449 | + 'include' => function($event) { |
|
450 | 450 | if (isset($event->location->address->postalCode)) { |
451 | 451 | return $event->location->address->postalCode; |
452 | 452 | } |
@@ -455,7 +455,7 @@ discard block |
||
455 | 455 | ], |
456 | 456 | 'address.addressLocality' => [ |
457 | 457 | 'name' => 'gemeente', |
458 | - 'include' => function ($event) { |
|
458 | + 'include' => function($event) { |
|
459 | 459 | if (isset($event->location->address->addressLocality)) { |
460 | 460 | return $event->location->address->addressLocality; |
461 | 461 | } |
@@ -464,7 +464,7 @@ discard block |
||
464 | 464 | ], |
465 | 465 | 'address.addressCountry' => [ |
466 | 466 | 'name' => 'land', |
467 | - 'include' => function ($event) { |
|
467 | + 'include' => function($event) { |
|
468 | 468 | if (isset($event->location->address->addressCountry)) { |
469 | 469 | return $event->location->address->addressCountry; |
470 | 470 | } |
@@ -473,14 +473,14 @@ discard block |
||
473 | 473 | ], |
474 | 474 | 'image' => [ |
475 | 475 | 'name' => 'afbeelding', |
476 | - 'include' => function ($event) { |
|
476 | + 'include' => function($event) { |
|
477 | 477 | return !empty($event->image) ? $event->image : ''; |
478 | 478 | }, |
479 | 479 | 'property' => 'image' |
480 | 480 | ], |
481 | 481 | 'sameAs' => [ |
482 | 482 | 'name' => 'externe ids', |
483 | - 'include' => function ($event) { |
|
483 | + 'include' => function($event) { |
|
484 | 484 | if (property_exists($event, 'sameAs')) { |
485 | 485 | $ids = array(); |
486 | 486 | |
@@ -495,7 +495,7 @@ discard block |
||
495 | 495 | ], |
496 | 496 | 'contactPoint.email' => [ |
497 | 497 | 'name' => 'e-mail', |
498 | - 'include' => function ($event) use ($contactPoint) { |
|
498 | + 'include' => function($event) use ($contactPoint) { |
|
499 | 499 | return $this->listJsonldProperty( |
500 | 500 | $contactPoint($event), |
501 | 501 | 'email' |
@@ -505,7 +505,7 @@ discard block |
||
505 | 505 | ], |
506 | 506 | 'contactPoint.telephone' => [ |
507 | 507 | 'name' => 'telefoon', |
508 | - 'include' => function ($event) use ($contactPoint) { |
|
508 | + 'include' => function($event) use ($contactPoint) { |
|
509 | 509 | return $this->listJsonldProperty( |
510 | 510 | $contactPoint($event), |
511 | 511 | 'telephone' |
@@ -515,7 +515,7 @@ discard block |
||
515 | 515 | ], |
516 | 516 | 'contactPoint.url' => [ |
517 | 517 | 'name' => 'url', |
518 | - 'include' => function ($event) use ($contactPoint) { |
|
518 | + 'include' => function($event) use ($contactPoint) { |
|
519 | 519 | $contactUrls = $this->listJsonldProperty( |
520 | 520 | $contactPoint($event), |
521 | 521 | 'url' |
@@ -526,7 +526,7 @@ discard block |
||
526 | 526 | ], |
527 | 527 | 'contactPoint.reservations.email' => [ |
528 | 528 | 'name' => 'e-mail reservaties', |
529 | - 'include' => function ($event) use ($contactPoint) { |
|
529 | + 'include' => function($event) use ($contactPoint) { |
|
530 | 530 | return $this->listJsonldProperty( |
531 | 531 | $contactPoint($event, 'Reservations'), |
532 | 532 | 'email' |
@@ -536,7 +536,7 @@ discard block |
||
536 | 536 | ], |
537 | 537 | 'contactPoint.reservations.telephone' => [ |
538 | 538 | 'name' => 'telefoon reservaties', |
539 | - 'include' => function ($event) use ($contactPoint) { |
|
539 | + 'include' => function($event) use ($contactPoint) { |
|
540 | 540 | return $this->listJsonldProperty( |
541 | 541 | $contactPoint($event, 'Reservations'), |
542 | 542 | 'telephone' |
@@ -546,7 +546,7 @@ discard block |
||
546 | 546 | ], |
547 | 547 | 'contactPoint.reservations.url' => [ |
548 | 548 | 'name' => 'online reservaties', |
549 | - 'include' => function ($event) use ($contactPoint) { |
|
549 | + 'include' => function($event) use ($contactPoint) { |
|
550 | 550 | return $this->listJsonldProperty( |
551 | 551 | $contactPoint($event, 'Reservations'), |
552 | 552 | 'url' |