@@ -204,7 +204,7 @@ discard block |
||
| 204 | 204 | ); |
| 205 | 205 | |
| 206 | 206 | $calendarJsonLD = $placeCreated->getCalendar()->toJsonLd(); |
| 207 | - $jsonLD = (object) array_merge((array) $jsonLD, $calendarJsonLD); |
|
| 207 | + $jsonLD = (object)array_merge((array)$jsonLD, $calendarJsonLD); |
|
| 208 | 208 | |
| 209 | 209 | $availableTo = AvailableTo::createFromCalendar($placeCreated->getCalendar()); |
| 210 | 210 | $jsonLD->availableTo = (string)$availableTo; |
@@ -271,8 +271,8 @@ discard block |
||
| 271 | 271 | $jsonLD->availableTo = (string)$availableTo; |
| 272 | 272 | |
| 273 | 273 | // Remove old theme and event type. |
| 274 | - $jsonLD->terms = array_filter($jsonLD->terms, function ($term) { |
|
| 275 | - return $term->domain !== EventType::DOMAIN && $term->domain !== Theme::DOMAIN; |
|
| 274 | + $jsonLD->terms = array_filter($jsonLD->terms, function($term) { |
|
| 275 | + return $term->domain !== EventType::DOMAIN && $term->domain !== Theme::DOMAIN; |
|
| 276 | 276 | }); |
| 277 | 277 | |
| 278 | 278 | $eventType = $majorInfoUpdated->getEventType(); |
@@ -336,7 +336,7 @@ discard block |
||
| 336 | 336 | // @replay_i18n |
| 337 | 337 | // @see https://jira.uitdatabank.be/browse/III-2201 |
| 338 | 338 | $mainLanguageCode = $this->getMainLanguage($jsonLd)->getCode(); |
| 339 | - $jsonLd->address = (object) [ |
|
| 339 | + $jsonLd->address = (object)[ |
|
| 340 | 340 | $mainLanguageCode => $jsonLd->address, |
| 341 | 341 | ]; |
| 342 | 342 | } |
@@ -359,7 +359,7 @@ discard block |
||
| 359 | 359 | // Remove all old facilities + get numeric keys. |
| 360 | 360 | $terms = array_values(array_filter( |
| 361 | 361 | $terms, |
| 362 | - function ($term) { |
|
| 362 | + function($term) { |
|
| 363 | 363 | return $term->domain !== Facility::DOMAIN; |
| 364 | 364 | } |
| 365 | 365 | )); |
@@ -383,7 +383,7 @@ discard block |
||
| 383 | 383 | |
| 384 | 384 | $placeLd = $document->getBody(); |
| 385 | 385 | |
| 386 | - $placeLd->geo = (object) [ |
|
| 386 | + $placeLd->geo = (object)[ |
|
| 387 | 387 | 'latitude' => $geoCoordinatesUpdated->getCoordinates()->getLatitude()->toDouble(), |
| 388 | 388 | 'longitude' => $geoCoordinatesUpdated->getCoordinates()->getLongitude()->toDouble(), |
| 389 | 389 | ]; |