@@ -132,14 +132,14 @@ |
||
132 | 132 | public function serialize() |
133 | 133 | { |
134 | 134 | return [ |
135 | - 'phone' => $this->phone, |
|
136 | - 'email' => $this->email, |
|
137 | - 'url' => $this->url, |
|
138 | - 'urlLabel' => $this->urlLabel, |
|
139 | - 'name' => $this->name, |
|
140 | - 'description' => $this->description, |
|
141 | - 'availabilityStarts' => $this->availabilityStarts, |
|
142 | - 'availabilityEnds' => $this->availabilityEnds, |
|
135 | + 'phone' => $this->phone, |
|
136 | + 'email' => $this->email, |
|
137 | + 'url' => $this->url, |
|
138 | + 'urlLabel' => $this->urlLabel, |
|
139 | + 'name' => $this->name, |
|
140 | + 'description' => $this->description, |
|
141 | + 'availabilityStarts' => $this->availabilityStarts, |
|
142 | + 'availabilityEnds' => $this->availabilityEnds, |
|
143 | 143 | ]; |
144 | 144 | } |
145 | 145 |
@@ -559,7 +559,7 @@ discard block |
||
559 | 559 | |
560 | 560 | $jsonLD->name->nl = $majorInfoUpdated->getTitle(); |
561 | 561 | $jsonLD->location = array( |
562 | - '@type' => 'Place', |
|
562 | + '@type' => 'Place', |
|
563 | 563 | ) + (array)$this->placeJSONLD($majorInfoUpdated->getLocation()->getCdbid()); |
564 | 564 | |
565 | 565 | $availableTo = AvailableTo::createFromCalendar($majorInfoUpdated->getCalendar()); |
@@ -595,7 +595,7 @@ discard block |
||
595 | 595 | |
596 | 596 | $jsonLD->location = [ |
597 | 597 | '@type' => 'Place', |
598 | - ] + (array) $this->placeJSONLD($locationUpdated->getLocationId()->toNative()); |
|
598 | + ] + (array) $this->placeJSONLD($locationUpdated->getLocationId()->toNative()); |
|
599 | 599 | |
600 | 600 | return $document->withBody($jsonLD); |
601 | 601 | } |