@@ -369,7 +369,7 @@ discard block |
||
| 369 | 369 | /** |
| 370 | 370 | * Return the media of an event if it already exists. |
| 371 | 371 | * |
| 372 | - * @param $eventId |
|
| 372 | + * @param string $eventId |
|
| 373 | 373 | * The id of the event. |
| 374 | 374 | * |
| 375 | 375 | * @return array |
@@ -867,6 +867,9 @@ discard block |
||
| 867 | 867 | return $document; |
| 868 | 868 | } |
| 869 | 869 | |
| 870 | + /** |
|
| 871 | + * @param string $eventId |
|
| 872 | + */ |
|
| 870 | 873 | private function generateSameAs($eventId, $name) |
| 871 | 874 | { |
| 872 | 875 | $eventSlug = $this->slugger->slug($name); |
@@ -1,7 +1,7 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - */ |
|
| 3 | + * @file |
|
| 4 | + */ |
|
| 5 | 5 | |
| 6 | 6 | namespace CultuurNet\UDB3\Event; |
| 7 | 7 | |
@@ -495,7 +495,7 @@ discard block |
||
| 495 | 495 | |
| 496 | 496 | $jsonLD->name->nl = $majorInfoUpdated->getTitle(); |
| 497 | 497 | $jsonLD->location = array( |
| 498 | - '@type' => 'Place', |
|
| 498 | + '@type' => 'Place', |
|
| 499 | 499 | ) + (array)$this->placeJSONLD($majorInfoUpdated->getLocation()->getCdbid()); |
| 500 | 500 | |
| 501 | 501 | $calendarJsonLD = $majorInfoUpdated->getCalendar()->toJsonLd(); |
@@ -742,7 +742,7 @@ discard block |
||
| 742 | 742 | $eventLd = $document->getBody(); |
| 743 | 743 | |
| 744 | 744 | $eventLd->organizer = array( |
| 745 | - '@type' => 'Organizer', |
|
| 745 | + '@type' => 'Organizer', |
|
| 746 | 746 | ) + (array)$this->organizerJSONLD($organizerUpdated->getOrganizerId()); |
| 747 | 747 | |
| 748 | 748 | $this->repository->save($document->withBody($eventLd)); |