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