@@ -241,7 +241,7 @@ |
||
241 | 241 | |
242 | 242 | /** |
243 | 243 | * @param PlaceDeleted $placeDeleted |
244 | - * @return null |
|
244 | + * @return JsonDocument |
|
245 | 245 | */ |
246 | 246 | protected function applyPlaceDeleted(PlaceDeleted $placeDeleted) |
247 | 247 | { |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | ); |
205 | 205 | |
206 | 206 | $calendarJsonLD = $placeCreated->getCalendar()->toJsonLd(); |
207 | - $jsonLD = (object) array_merge((array) $jsonLD, $calendarJsonLD); |
|
207 | + $jsonLD = (object)array_merge((array)$jsonLD, $calendarJsonLD); |
|
208 | 208 | |
209 | 209 | $availableTo = AvailableTo::createFromCalendar($placeCreated->getCalendar()); |
210 | 210 | $jsonLD->availableTo = (string)$availableTo; |
@@ -279,8 +279,8 @@ discard block |
||
279 | 279 | $jsonLD->availableTo = (string)$availableTo; |
280 | 280 | |
281 | 281 | // Remove old theme and event type. |
282 | - $jsonLD->terms = array_filter($jsonLD->terms, function ($term) { |
|
283 | - return $term->domain !== EventType::DOMAIN && $term->domain !== Theme::DOMAIN; |
|
282 | + $jsonLD->terms = array_filter($jsonLD->terms, function($term) { |
|
283 | + return $term->domain !== EventType::DOMAIN && $term->domain !== Theme::DOMAIN; |
|
284 | 284 | }); |
285 | 285 | |
286 | 286 | $eventType = $majorInfoUpdated->getEventType(); |
@@ -346,7 +346,7 @@ discard block |
||
346 | 346 | // @replay_i18n |
347 | 347 | // @see https://jira.uitdatabank.be/browse/III-2201 |
348 | 348 | $mainLanguageCode = $this->getMainLanguage($jsonLd)->getCode(); |
349 | - $jsonLd->address = (object) [ |
|
349 | + $jsonLd->address = (object)[ |
|
350 | 350 | $mainLanguageCode => $jsonLd->address, |
351 | 351 | ]; |
352 | 352 | } |
@@ -364,7 +364,7 @@ discard block |
||
364 | 364 | |
365 | 365 | $placeLd = $document->getBody(); |
366 | 366 | |
367 | - $placeLd->geo = (object) [ |
|
367 | + $placeLd->geo = (object)[ |
|
368 | 368 | 'latitude' => $geoCoordinatesUpdated->getCoordinates()->getLatitude()->toDouble(), |
369 | 369 | 'longitude' => $geoCoordinatesUpdated->getCoordinates()->getLongitude()->toDouble(), |
370 | 370 | ]; |
@@ -24,6 +24,7 @@ discard block |
||
24 | 24 | * @param string $id |
25 | 25 | * @param Language $language |
26 | 26 | * @param StringLiteral $title |
27 | + * @return string |
|
27 | 28 | */ |
28 | 29 | public function updateTitle($id, Language $language, StringLiteral $title); |
29 | 30 | |
@@ -33,6 +34,7 @@ discard block |
||
33 | 34 | * @param string $id |
34 | 35 | * @param Language $language |
35 | 36 | * @param Description $description |
37 | + * @return string |
|
36 | 38 | */ |
37 | 39 | public function updateDescription($id, Language $language, Description $description); |
38 | 40 | |
@@ -41,6 +43,7 @@ discard block |
||
41 | 43 | * |
42 | 44 | * @param string $id |
43 | 45 | * @param AgeRange $ageRange |
46 | + * @return string |
|
44 | 47 | */ |
45 | 48 | public function updateTypicalAgeRange($id, AgeRange $ageRange); |
46 | 49 | |
@@ -48,6 +51,7 @@ discard block |
||
48 | 51 | * Delete the typical age range of a place. |
49 | 52 | * |
50 | 53 | * @param string $id |
54 | + * @return string |
|
51 | 55 | */ |
52 | 56 | public function deleteTypicalAgeRange($id); |
53 | 57 | |
@@ -56,6 +60,7 @@ discard block |
||
56 | 60 | * |
57 | 61 | * @param string $id |
58 | 62 | * @param string $organizerId |
63 | + * @return string |
|
59 | 64 | */ |
60 | 65 | public function updateOrganizer($id, $organizerId); |
61 | 66 | |
@@ -64,6 +69,7 @@ discard block |
||
64 | 69 | * |
65 | 70 | * @param string $id |
66 | 71 | * @param string $organizerId |
72 | + * @return string |
|
67 | 73 | */ |
68 | 74 | public function deleteOrganizer($id, $organizerId); |
69 | 75 | |
@@ -72,6 +78,7 @@ discard block |
||
72 | 78 | * |
73 | 79 | * @param string $id |
74 | 80 | * @param ContactPoint $contactPoint |
81 | + * @return string |
|
75 | 82 | */ |
76 | 83 | public function updateContactPoint($id, ContactPoint $contactPoint); |
77 | 84 | |
@@ -80,6 +87,7 @@ discard block |
||
80 | 87 | * |
81 | 88 | * @param string $id |
82 | 89 | * @param UUID $imageId |
90 | + * @return string |
|
83 | 91 | */ |
84 | 92 | public function addImage($id, UUID $imageId); |
85 | 93 | |
@@ -106,6 +114,7 @@ discard block |
||
106 | 114 | * |
107 | 115 | * @param string $id |
108 | 116 | * @param Image $image |
117 | + * @return string |
|
109 | 118 | */ |
110 | 119 | public function removeImage($id, Image $image); |
111 | 120 |
@@ -32,7 +32,7 @@ |
||
32 | 32 | |
33 | 33 | /** |
34 | 34 | * @param array $data |
35 | - * @return mixed The object instance |
|
35 | + * @return AbstractFacilitiesUpdated The object instance |
|
36 | 36 | */ |
37 | 37 | public static function deserialize(array $data) |
38 | 38 | { |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | |
160 | 160 | if (preg_match('/^apply(.+)$/', $method, $matches)) { |
161 | 161 | $event = $matches[1]; |
162 | - $classNameMethod = 'get' . $event . 'ClassName'; |
|
162 | + $classNameMethod = 'get'.$event.'ClassName'; |
|
163 | 163 | |
164 | 164 | if (method_exists($this, $classNameMethod)) { |
165 | 165 | $eventFullClassName = call_user_func(array($this, $classNameMethod)); |
@@ -344,11 +344,11 @@ discard block |
||
344 | 344 | $offerLD = $document->getBody(); |
345 | 345 | |
346 | 346 | $oldTerms = property_exists($offerLD, 'terms') ? $offerLD->terms : []; |
347 | - $newTerm = (object) $category->serialize(); |
|
347 | + $newTerm = (object)$category->serialize(); |
|
348 | 348 | |
349 | 349 | $newTerms = array_filter( |
350 | 350 | $oldTerms, |
351 | - function ($term) use ($category) { |
|
351 | + function($term) use ($category) { |
|
352 | 352 | return !property_exists($term, 'domain') || $term->domain !== $category->getDomain(); |
353 | 353 | } |
354 | 354 | ); |
@@ -375,7 +375,7 @@ discard block |
||
375 | 375 | // Remove all old facilities + get numeric keys. |
376 | 376 | $terms = array_values(array_filter( |
377 | 377 | $terms, |
378 | - function ($term) { |
|
378 | + function($term) { |
|
379 | 379 | return $term->domain !== Facility::DOMAIN; |
380 | 380 | } |
381 | 381 | )); |
@@ -404,7 +404,7 @@ discard block |
||
404 | 404 | $labelsProperty = $labelAdded->getLabel()->isVisible() ? 'labels' : 'hiddenLabels'; |
405 | 405 | |
406 | 406 | $labels = isset($offerLd->{$labelsProperty}) ? $offerLd->{$labelsProperty} : []; |
407 | - $label = (string) $labelAdded->getLabel(); |
|
407 | + $label = (string)$labelAdded->getLabel(); |
|
408 | 408 | |
409 | 409 | $labels[] = $label; |
410 | 410 | $offerLd->{$labelsProperty} = array_unique($labels); |
@@ -430,7 +430,7 @@ discard block |
||
430 | 430 | if (isset($offerLd->{$labelsProperty}) && is_array($offerLd->{$labelsProperty})) { |
431 | 431 | $offerLd->{$labelsProperty} = array_filter( |
432 | 432 | $offerLd->{$labelsProperty}, |
433 | - function ($label) use ($labelRemoved) { |
|
433 | + function($label) use ($labelRemoved) { |
|
434 | 434 | return !$labelRemoved->getLabel()->equals( |
435 | 435 | new Label($label) |
436 | 436 | ); |
@@ -530,7 +530,7 @@ discard block |
||
530 | 530 | return; |
531 | 531 | } |
532 | 532 | |
533 | - $imageId = (string) $imageRemoved->getImage()->getMediaObjectId(); |
|
533 | + $imageId = (string)$imageRemoved->getImage()->getMediaObjectId(); |
|
534 | 534 | |
535 | 535 | /** |
536 | 536 | * Matches any object that is not the removed image. |
@@ -541,7 +541,7 @@ discard block |
||
541 | 541 | * @return bool |
542 | 542 | * Returns true when the media object does not match the image to remove. |
543 | 543 | */ |
544 | - $shouldNotBeRemoved = function ($mediaObject) use ($imageId) { |
|
544 | + $shouldNotBeRemoved = function($mediaObject) use ($imageId) { |
|
545 | 545 | $containsId = !!strpos($mediaObject->{'@id'}, $imageId); |
546 | 546 | return !$containsId; |
547 | 547 | }; |
@@ -580,7 +580,7 @@ discard block |
||
580 | 580 | $document = $this->loadDocumentFromRepository($mainImageSelected); |
581 | 581 | $offerLd = $document->getBody(); |
582 | 582 | $imageId = $mainImageSelected->getImage()->getMediaObjectId(); |
583 | - $mediaObjectMatcher = function ($matchingMediaObject, $currentMediaObject) use ($imageId) { |
|
583 | + $mediaObjectMatcher = function($matchingMediaObject, $currentMediaObject) use ($imageId) { |
|
584 | 584 | if (!$matchingMediaObject && $this->mediaObjectMatchesId($currentMediaObject, $imageId)) { |
585 | 585 | $matchingMediaObject = $currentMediaObject; |
586 | 586 | } |
@@ -605,7 +605,7 @@ discard block |
||
605 | 605 | */ |
606 | 606 | protected function mediaObjectMatchesId($mediaObject, UUID $mediaObjectId) |
607 | 607 | { |
608 | - return strpos($mediaObject->{'@id'}, (string) $mediaObjectId) > 0; |
|
608 | + return strpos($mediaObject->{'@id'}, (string)$mediaObjectId) > 0; |
|
609 | 609 | } |
610 | 610 | |
611 | 611 | /** |
@@ -802,7 +802,7 @@ discard block |
||
802 | 802 | $document = $this->loadDocumentFromRepository($typicalAgeRangeUpdated); |
803 | 803 | |
804 | 804 | $offerLd = $document->getBody(); |
805 | - $offerLd->typicalAgeRange = (string) $typicalAgeRangeUpdated->getTypicalAgeRange(); |
|
805 | + $offerLd->typicalAgeRange = (string)$typicalAgeRangeUpdated->getTypicalAgeRange(); |
|
806 | 806 | |
807 | 807 | return $document->withBody($offerLd); |
808 | 808 | } |
@@ -930,14 +930,14 @@ discard block |
||
930 | 930 | $images = $imagesEvent->getImages(); |
931 | 931 | $currentMediaObjects = isset($offerLd->mediaObject) ? $offerLd->mediaObject : []; |
932 | 932 | $dutchMediaObjects = array_map( |
933 | - function (Image $image) { |
|
933 | + function(Image $image) { |
|
934 | 934 | return $this->mediaObjectSerializer->serialize($image, 'json-ld'); |
935 | 935 | }, |
936 | 936 | $images->toArray() |
937 | 937 | ); |
938 | 938 | $translatedMediaObjects = array_filter( |
939 | 939 | $currentMediaObjects, |
940 | - function ($image) { |
|
940 | + function($image) { |
|
941 | 941 | return $image->inLanguage !== 'nl'; |
942 | 942 | } |
943 | 943 | ); |
@@ -950,7 +950,7 @@ discard block |
||
950 | 950 | } |
951 | 951 | |
952 | 952 | if (isset($mainImage)) { |
953 | - $offerLd->image = (string) $mainImage->getSourceLocation(); |
|
953 | + $offerLd->image = (string)$mainImage->getSourceLocation(); |
|
954 | 954 | } |
955 | 955 | } |
956 | 956 |
@@ -9,8 +9,8 @@ |
||
9 | 9 | */ |
10 | 10 | public function format(Address $address) |
11 | 11 | { |
12 | - return $address->getPostalCode() . ' ' . |
|
13 | - $address->getLocality() . ', ' . |
|
12 | + return $address->getPostalCode().' '. |
|
13 | + $address->getLocality().', '. |
|
14 | 14 | $address->getCountry()->getCode(); |
15 | 15 | } |
16 | 16 | } |
@@ -154,7 +154,7 @@ |
||
154 | 154 | } |
155 | 155 | return parent::serialize() + array( |
156 | 156 | 'main_language' => $this->mainLanguage->getCode(), |
157 | - 'title' => (string) $this->getTitle(), |
|
157 | + 'title' => (string)$this->getTitle(), |
|
158 | 158 | 'event_type' => $this->getEventType()->serialize(), |
159 | 159 | 'theme' => $theme, |
160 | 160 | 'address' => $this->getAddress()->serialize(), |
@@ -73,8 +73,8 @@ |
||
73 | 73 | { |
74 | 74 | return parent::serialize() + array( |
75 | 75 | 'main_language' => $this->getMainLanguage()->getCode(), |
76 | - 'website' => (string) $this->getWebsite(), |
|
77 | - 'title' => (string) $this->getTitle(), |
|
76 | + 'website' => (string)$this->getWebsite(), |
|
77 | + 'title' => (string)$this->getTitle(), |
|
78 | 78 | ); |
79 | 79 | } |
80 | 80 |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | |
218 | 218 | $this->setMainLanguage($jsonLD, $organizerCreated->getMainLanguage()); |
219 | 219 | |
220 | - $jsonLD->url = (string) $organizerCreated->getWebsite(); |
|
220 | + $jsonLD->url = (string)$organizerCreated->getWebsite(); |
|
221 | 221 | |
222 | 222 | $jsonLD->name = [ |
223 | 223 | $this->getMainLanguage($jsonLD)->getCode() => $organizerCreated->getTitle(), |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | $document = $this->repository->get($organizerId); |
249 | 249 | |
250 | 250 | $jsonLD = $document->getBody(); |
251 | - $jsonLD->url = (string) $websiteUpdated->getWebsite(); |
|
251 | + $jsonLD->url = (string)$websiteUpdated->getWebsite(); |
|
252 | 252 | |
253 | 253 | return $document->withBody($jsonLD); |
254 | 254 | } |
@@ -356,7 +356,7 @@ discard block |
||
356 | 356 | $labelsProperty = $labelAdded->getLabel()->isVisible() ? 'labels' : 'hiddenLabels'; |
357 | 357 | |
358 | 358 | $labels = isset($jsonLD->{$labelsProperty}) ? $jsonLD->{$labelsProperty} : []; |
359 | - $label = (string) $labelAdded->getLabel(); |
|
359 | + $label = (string)$labelAdded->getLabel(); |
|
360 | 360 | |
361 | 361 | $labels[] = $label; |
362 | 362 | $jsonLD->{$labelsProperty} = array_unique($labels); |
@@ -380,7 +380,7 @@ discard block |
||
380 | 380 | if (isset($jsonLD->{$labelsProperty}) && is_array($jsonLD->{$labelsProperty})) { |
381 | 381 | $jsonLD->{$labelsProperty} = array_filter( |
382 | 382 | $jsonLD->{$labelsProperty}, |
383 | - function ($label) use ($labelRemoved) { |
|
383 | + function($label) use ($labelRemoved) { |
|
384 | 384 | return !$labelRemoved->getLabel()->equals( |
385 | 385 | new Label($label) |
386 | 386 | ); |
@@ -407,7 +407,7 @@ discard block |
||
407 | 407 | private function applyOrganizerDeleted( |
408 | 408 | OrganizerDeleted $organizerDeleted |
409 | 409 | ) { |
410 | - $document = $this->repository->get($organizerDeleted->getOrganizerId()); |
|
410 | + $document = $this->repository->get($organizerDeleted->getOrganizerId()); |
|
411 | 411 | |
412 | 412 | $jsonLD = $document->getBody(); |
413 | 413 |
@@ -63,21 +63,21 @@ discard block |
||
63 | 63 | |
64 | 64 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
65 | 65 | 'CultuurNet\UDB3\Event\Events\EventCreated', |
66 | - function (array $serializedObject) { |
|
66 | + function(array $serializedObject) { |
|
67 | 67 | return self::addDefaultMainLanguage($serializedObject); |
68 | 68 | } |
69 | 69 | ); |
70 | 70 | |
71 | 71 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
72 | 72 | 'CultuurNet\UDB3\Place\Events\PlaceCreated', |
73 | - function (array $serializedObject) { |
|
73 | + function(array $serializedObject) { |
|
74 | 74 | return self::addDefaultMainLanguage($serializedObject); |
75 | 75 | } |
76 | 76 | ); |
77 | 77 | |
78 | 78 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
79 | 79 | 'CultuurNet\UDB3\Organizer\Events\OrganizerCreatedWithUniqueWebsite', |
80 | - function (array $serializedObject) { |
|
80 | + function(array $serializedObject) { |
|
81 | 81 | return self::addDefaultMainLanguage($serializedObject); |
82 | 82 | } |
83 | 83 | ); |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | |
89 | 89 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
90 | 90 | 'CultuurNet\UDB3\Event\TitleTranslated', |
91 | - function (array $serializedObject) { |
|
91 | + function(array $serializedObject) { |
|
92 | 92 | $serializedObject['class'] = TitleTranslated::class; |
93 | 93 | |
94 | 94 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | |
100 | 100 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
101 | 101 | 'CultuurNet\UDB3\Event\DescriptionTranslated', |
102 | - function (array $serializedObject) { |
|
102 | + function(array $serializedObject) { |
|
103 | 103 | $serializedObject['class'] = DescriptionTranslated::class; |
104 | 104 | |
105 | 105 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -114,49 +114,49 @@ discard block |
||
114 | 114 | |
115 | 115 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
116 | 116 | 'CultuurNet\UDB3\Label\Events\MadeInvisible', |
117 | - function (array $serializedObject) use ($labelRepository) { |
|
117 | + function(array $serializedObject) use ($labelRepository) { |
|
118 | 118 | return self::addLabelName($serializedObject, $labelRepository); |
119 | 119 | } |
120 | 120 | ); |
121 | 121 | |
122 | 122 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
123 | 123 | 'CultuurNet\UDB3\Label\Events\MadeVisible', |
124 | - function (array $serializedObject) use ($labelRepository) { |
|
124 | + function(array $serializedObject) use ($labelRepository) { |
|
125 | 125 | return self::addLabelName($serializedObject, $labelRepository); |
126 | 126 | } |
127 | 127 | ); |
128 | 128 | |
129 | 129 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
130 | 130 | 'CultuurNet\UDB3\Label\Events\MadePrivate', |
131 | - function (array $serializedObject) use ($labelRepository) { |
|
131 | + function(array $serializedObject) use ($labelRepository) { |
|
132 | 132 | return self::addLabelName($serializedObject, $labelRepository); |
133 | 133 | } |
134 | 134 | ); |
135 | 135 | |
136 | 136 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
137 | 137 | 'CultuurNet\UDB3\Label\Events\MadePublic', |
138 | - function (array $serializedObject) use ($labelRepository) { |
|
138 | + function(array $serializedObject) use ($labelRepository) { |
|
139 | 139 | return self::addLabelName($serializedObject, $labelRepository); |
140 | 140 | } |
141 | 141 | ); |
142 | 142 | |
143 | 143 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
144 | 144 | 'CultuurNet\UDB3\Organizer\Events\LabelAdded', |
145 | - function (array $serializedObject) use ($labelRepository) { |
|
145 | + function(array $serializedObject) use ($labelRepository) { |
|
146 | 146 | return self::fixOrganizerLabelEvent($serializedObject, $labelRepository); |
147 | 147 | } |
148 | 148 | ); |
149 | 149 | |
150 | 150 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
151 | 151 | 'CultuurNet\UDB3\Organizer\Events\LabelRemoved', |
152 | - function (array $serializedObject) use ($labelRepository) { |
|
152 | + function(array $serializedObject) use ($labelRepository) { |
|
153 | 153 | return self::fixOrganizerLabelEvent($serializedObject, $labelRepository); |
154 | 154 | } |
155 | 155 | ); |
156 | 156 | |
157 | 157 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
158 | 158 | 'CultuurNet\UDB3\Event\Events\EventWasLabelled', |
159 | - function (array $serializedObject) { |
|
159 | + function(array $serializedObject) { |
|
160 | 160 | $serializedObject['class'] = LabelAdded::class; |
161 | 161 | |
162 | 162 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | |
168 | 168 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
169 | 169 | 'CultuurNet\UDB3\Event\EventWasTagged', |
170 | - function (array $serializedObject) { |
|
170 | + function(array $serializedObject) { |
|
171 | 171 | $serializedObject['class'] = LabelAdded::class; |
172 | 172 | |
173 | 173 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | |
181 | 181 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
182 | 182 | 'CultuurNet\UDB3\Event\TagErased', |
183 | - function (array $serializedObject) { |
|
183 | + function(array $serializedObject) { |
|
184 | 184 | $serializedObject['class'] = LabelRemoved::class; |
185 | 185 | |
186 | 186 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | |
194 | 194 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
195 | 195 | 'CultuurNet\UDB3\Event\Events\Unlabelled', |
196 | - function (array $serializedObject) { |
|
196 | + function(array $serializedObject) { |
|
197 | 197 | $serializedObject['class'] = LabelRemoved::class; |
198 | 198 | |
199 | 199 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | |
209 | 209 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
210 | 210 | 'CultuurNet\UDB3\Event\EventImportedFromUDB2', |
211 | - function (array $serializedObject) { |
|
211 | + function(array $serializedObject) { |
|
212 | 212 | $serializedObject['class'] = EventImportedFromUDB2::class; |
213 | 213 | |
214 | 214 | return $serializedObject; |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | */ |
221 | 221 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
222 | 222 | 'CultuurNet\UDB3\Place\Events\FacilitiesUpdated', |
223 | - function (array $serializedObject) { |
|
223 | + function(array $serializedObject) { |
|
224 | 224 | $serializedObject = self::replacePlaceIdWithItemId($serializedObject); |
225 | 225 | |
226 | 226 | return $serializedObject; |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | */ |
233 | 233 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
234 | 234 | 'CultuurNet\UDB3\Place\Events\GeoCoordinatesUpdated', |
235 | - function (array $serializedObject) { |
|
235 | + function(array $serializedObject) { |
|
236 | 236 | $serializedObject = self::replacePlaceIdWithItemId($serializedObject); |
237 | 237 | |
238 | 238 | return $serializedObject; |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | foreach ($refactoredEventEvents as $refactoredEventEvent) { |
258 | 258 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
259 | 259 | $refactoredEventEvent, |
260 | - function (array $serializedObject) { |
|
260 | + function(array $serializedObject) { |
|
261 | 261 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
262 | 262 | return $serializedObject; |
263 | 263 | } |
@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | foreach ($refactoredPlaceEvents as $refactoredPlaceEvent) { |
282 | 282 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
283 | 283 | $refactoredPlaceEvent, |
284 | - function (array $serializedObject) { |
|
284 | + function(array $serializedObject) { |
|
285 | 285 | $serializedObject = self::replacePlaceIdWithItemId($serializedObject); |
286 | 286 | return $serializedObject; |
287 | 287 | } |