@@ -40,7 +40,7 @@ |
||
40 | 40 | } |
41 | 41 | |
42 | 42 | /** |
43 | - * @return ing |
|
43 | + * @return integer |
|
44 | 44 | */ |
45 | 45 | function getIndexToDelete() |
46 | 46 | { |
@@ -799,6 +799,9 @@ |
||
799 | 799 | return $document; |
800 | 800 | } |
801 | 801 | |
802 | + /** |
|
803 | + * @param string $eventId |
|
804 | + */ |
|
802 | 805 | private function generateSameAs($eventId, $name) |
803 | 806 | { |
804 | 807 | $eventSlug = $this->slugger->slug($name); |
@@ -355,7 +355,7 @@ discard block |
||
355 | 355 | ) + (array)$this->placeJSONLD($eventCreated->getLocation()->getCdbid()); |
356 | 356 | |
357 | 357 | $calendarJsonLD = $eventCreated->getCalendar()->toJsonLd(); |
358 | - $jsonLD = (object) array_merge((array) $jsonLD, $calendarJsonLD); |
|
358 | + $jsonLD = (object)array_merge((array)$jsonLD, $calendarJsonLD); |
|
359 | 359 | |
360 | 360 | // Same as. |
361 | 361 | $jsonLD->sameAs = $this->generateSameAs( |
@@ -413,11 +413,11 @@ discard block |
||
413 | 413 | ) + (array)$this->placeJSONLD($majorInfoUpdated->getLocation()->getCdbid()); |
414 | 414 | |
415 | 415 | $calendarJsonLD = $majorInfoUpdated->getCalendar()->toJsonLd(); |
416 | - $jsonLD = (object) array_merge((array) $jsonLD, $calendarJsonLD); |
|
416 | + $jsonLD = (object)array_merge((array)$jsonLD, $calendarJsonLD); |
|
417 | 417 | |
418 | 418 | // Remove old theme and event type. |
419 | - $jsonLD->terms = array_filter($jsonLD->terms, function ($term) { |
|
420 | - return $term->domain !== EventType::DOMAIN && $term->domain !== Theme::DOMAIN; |
|
419 | + $jsonLD->terms = array_filter($jsonLD->terms, function($term) { |
|
420 | + return $term->domain !== EventType::DOMAIN && $term->domain !== Theme::DOMAIN; |
|
421 | 421 | }); |
422 | 422 | |
423 | 423 | $eventType = $majorInfoUpdated->getEventType(); |
@@ -477,7 +477,7 @@ discard block |
||
477 | 477 | $eventLd = $document->getBody(); |
478 | 478 | |
479 | 479 | $labels = isset($eventLd->labels) ? $eventLd->labels : []; |
480 | - $label = (string) $eventWasLabelled->getLabel(); |
|
480 | + $label = (string)$eventWasLabelled->getLabel(); |
|
481 | 481 | |
482 | 482 | $labels[] = $label; |
483 | 483 | $eventLd->labels = array_unique($labels); |
@@ -494,7 +494,7 @@ discard block |
||
494 | 494 | if (is_array($eventLd->labels)) { |
495 | 495 | $eventLd->labels = array_filter( |
496 | 496 | $eventLd->labels, |
497 | - function ($label) use ($unlabelled) { |
|
497 | + function($label) use ($unlabelled) { |
|
498 | 498 | return !$unlabelled->getLabel()->equals( |
499 | 499 | new Label($label) |
500 | 500 | ); |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | |
19 | 19 | /** |
20 | 20 | * @param string $id |
21 | - * @param Object $bookingInfo |
|
21 | + * @param \CultuurNet\UDB3\BookingInfo $bookingInfo |
|
22 | 22 | */ |
23 | 23 | public function __construct($id, $bookingInfo) |
24 | 24 | { |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | } |
28 | 28 | |
29 | 29 | /** |
30 | - * @return mixed The object instance |
|
30 | + * @return BookingInfoUpdated The object instance |
|
31 | 31 | */ |
32 | 32 | public static function deserialize(array $data) |
33 | 33 | { |
@@ -42,7 +42,7 @@ |
||
42 | 42 | } |
43 | 43 | |
44 | 44 | /** |
45 | - * @return mixed The object instance |
|
45 | + * @return EventCreatedFromCdbXml The object instance |
|
46 | 46 | */ |
47 | 47 | public static function deserialize(array $data) |
48 | 48 | { |
@@ -42,7 +42,7 @@ |
||
42 | 42 | } |
43 | 43 | |
44 | 44 | /** |
45 | - * @return mixed The object instance |
|
45 | + * @return EventUpdatedFromCdbXml The object instance |
|
46 | 46 | */ |
47 | 47 | public static function deserialize(array $data) |
48 | 48 | { |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | } |
126 | 126 | |
127 | 127 | /** |
128 | - * @param $dateString |
|
128 | + * @param string $dateString |
|
129 | 129 | * @return \DateTime |
130 | 130 | */ |
131 | 131 | private function dateFromUdb2DateString($dateString) |
@@ -351,7 +351,7 @@ discard block |
||
351 | 351 | |
352 | 352 | /** |
353 | 353 | * @param string $eventId |
354 | - * @param Log[]|Log $logs |
|
354 | + * @param Log $logs |
|
355 | 355 | */ |
356 | 356 | protected function writeHistory($eventId, $logs) |
357 | 357 | { |
@@ -215,7 +215,7 @@ |
||
215 | 215 | $labels = $labelsMerged->getLabels()->toStrings(); |
216 | 216 | // Quote labels. |
217 | 217 | $quotedLabels = array_map( |
218 | - function ($label) { |
|
218 | + function($label) { |
|
219 | 219 | return "'{$label}'"; |
220 | 220 | }, |
221 | 221 | $labels |
@@ -15,7 +15,7 @@ |
||
15 | 15 | /** |
16 | 16 | * Gets the JSON-LD structure of an Organizer. |
17 | 17 | * |
18 | - * @param string $organizerId |
|
18 | + * @param string $oganizerId |
|
19 | 19 | * Id of the Organizer. |
20 | 20 | * |
21 | 21 | * @return \stdClass |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | } |
70 | 70 | |
71 | 71 | /** |
72 | - * @return null|\string[] |
|
72 | + * @return string[] |
|
73 | 73 | */ |
74 | 74 | public function getSelection() |
75 | 75 | { |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | } |
78 | 78 | |
79 | 79 | /** |
80 | - * @return null|\string[] |
|
80 | + * @return string[] |
|
81 | 81 | */ |
82 | 82 | public function getInclude() |
83 | 83 | { |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | } |
169 | 169 | |
170 | 170 | /** |
171 | - * @return Brand |
|
171 | + * @return string |
|
172 | 172 | */ |
173 | 173 | public function getBrand() |
174 | 174 | { |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | } |
177 | 177 | |
178 | 178 | /** |
179 | - * @return Title |
|
179 | + * @return string |
|
180 | 180 | */ |
181 | 181 | public function getTitle() |
182 | 182 | { |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | } |
185 | 185 | |
186 | 186 | /** |
187 | - * @return Subtitle |
|
187 | + * @return string |
|
188 | 188 | */ |
189 | 189 | public function getSubtitle() |
190 | 190 | { |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | } |
193 | 193 | |
194 | 194 | /** |
195 | - * @return Footer |
|
195 | + * @return string |
|
196 | 196 | */ |
197 | 197 | public function getFooter() |
198 | 198 | { |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | } |
201 | 201 | |
202 | 202 | /** |
203 | - * @return Publisher |
|
203 | + * @return string |
|
204 | 204 | */ |
205 | 205 | public function getPublisher() |
206 | 206 | { |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | } |
225 | 225 | |
226 | 226 | /** |
227 | - * @return null|\string[] |
|
227 | + * @return string[] |
|
228 | 228 | */ |
229 | 229 | public function getSelection() |
230 | 230 | { |