@@ -372,8 +372,8 @@ discard block |
||
| 372 | 372 | $calendarJsonLD['openingHours'] = []; |
| 373 | 373 | } |
| 374 | 374 | |
| 375 | - $eventJsonLD = (object) array_merge( |
|
| 376 | - (array) $eventJsonLD, |
|
| 375 | + $eventJsonLD = (object)array_merge( |
|
| 376 | + (array)$eventJsonLD, |
|
| 377 | 377 | $calendarJsonLD |
| 378 | 378 | ); |
| 379 | 379 | |
@@ -386,7 +386,7 @@ discard block |
||
| 386 | 386 | |
| 387 | 387 | // Set available to and from. |
| 388 | 388 | $availableTo = AvailableTo::createFromCalendar($eventCopied->getCalendar()); |
| 389 | - $eventJsonLD->availableTo = (string) $availableTo; |
|
| 389 | + $eventJsonLD->availableTo = (string)$availableTo; |
|
| 390 | 390 | unset($eventJsonLD->availableFrom); |
| 391 | 391 | |
| 392 | 392 | $newDocument = new JsonDocument($eventCopied->getItemId()); |
@@ -432,8 +432,8 @@ discard block |
||
| 432 | 432 | $jsonLD->availableTo = (string)$availableTo; |
| 433 | 433 | |
| 434 | 434 | // Remove old theme and event type. |
| 435 | - $jsonLD->terms = array_filter($jsonLD->terms, function ($term) { |
|
| 436 | - return $term->domain !== EventType::DOMAIN && $term->domain !== Theme::DOMAIN; |
|
| 435 | + $jsonLD->terms = array_filter($jsonLD->terms, function($term) { |
|
| 436 | + return $term->domain !== EventType::DOMAIN && $term->domain !== Theme::DOMAIN; |
|
| 437 | 437 | }); |
| 438 | 438 | $jsonLD->terms = array_values($jsonLD->terms); |
| 439 | 439 | |
@@ -461,7 +461,7 @@ discard block |
||
| 461 | 461 | |
| 462 | 462 | $jsonLD->location = [ |
| 463 | 463 | '@type' => 'Place', |
| 464 | - ] + (array) $this->placeJSONLD($locationUpdated->getLocationId()->toNative()); |
|
| 464 | + ] + (array)$this->placeJSONLD($locationUpdated->getLocationId()->toNative()); |
|
| 465 | 465 | |
| 466 | 466 | return $document->withBody($jsonLD); |
| 467 | 467 | } |
@@ -476,7 +476,7 @@ discard block |
||
| 476 | 476 | |
| 477 | 477 | $eventLd = $document->getBody(); |
| 478 | 478 | |
| 479 | - $eventLd->location->geo = (object) [ |
|
| 479 | + $eventLd->location->geo = (object)[ |
|
| 480 | 480 | 'latitude' => $geoCoordinatesUpdated->getCoordinates()->getLatitude()->toDouble(), |
| 481 | 481 | 'longitude' => $geoCoordinatesUpdated->getCoordinates()->getLongitude()->toDouble(), |
| 482 | 482 | ]; |
@@ -530,7 +530,7 @@ discard block |
||
| 530 | 530 | { |
| 531 | 531 | $eventSlug = $this->slugger->slug($name); |
| 532 | 532 | return array( |
| 533 | - 'http://www.uitinvlaanderen.be/agenda/e/' . $eventSlug . '/' . $eventId, |
|
| 533 | + 'http://www.uitinvlaanderen.be/agenda/e/'.$eventSlug.'/'.$eventId, |
|
| 534 | 534 | ); |
| 535 | 535 | } |
| 536 | 536 | |