@@ -65,21 +65,21 @@ discard block |
||
| 65 | 65 | |
| 66 | 66 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 67 | 67 | 'CultuurNet\UDB3\Event\Events\EventCreated', |
| 68 | - function (array $serializedObject) { |
|
| 68 | + function(array $serializedObject) { |
|
| 69 | 69 | return self::addDefaultMainLanguage($serializedObject); |
| 70 | 70 | } |
| 71 | 71 | ); |
| 72 | 72 | |
| 73 | 73 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 74 | 74 | 'CultuurNet\UDB3\Place\Events\PlaceCreated', |
| 75 | - function (array $serializedObject) { |
|
| 75 | + function(array $serializedObject) { |
|
| 76 | 76 | return self::addDefaultMainLanguage($serializedObject); |
| 77 | 77 | } |
| 78 | 78 | ); |
| 79 | 79 | |
| 80 | 80 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 81 | 81 | 'CultuurNet\UDB3\Organizer\Events\OrganizerCreatedWithUniqueWebsite', |
| 82 | - function (array $serializedObject) { |
|
| 82 | + function(array $serializedObject) { |
|
| 83 | 83 | return self::addDefaultMainLanguage($serializedObject); |
| 84 | 84 | } |
| 85 | 85 | ); |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | |
| 91 | 91 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 92 | 92 | 'CultuurNet\UDB3\Event\TitleTranslated', |
| 93 | - function (array $serializedObject) { |
|
| 93 | + function(array $serializedObject) { |
|
| 94 | 94 | $serializedObject['class'] = TitleTranslated::class; |
| 95 | 95 | |
| 96 | 96 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | |
| 102 | 102 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 103 | 103 | 'CultuurNet\UDB3\Event\DescriptionTranslated', |
| 104 | - function (array $serializedObject) { |
|
| 104 | + function(array $serializedObject) { |
|
| 105 | 105 | $serializedObject['class'] = DescriptionTranslated::class; |
| 106 | 106 | |
| 107 | 107 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -116,49 +116,49 @@ discard block |
||
| 116 | 116 | |
| 117 | 117 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 118 | 118 | 'CultuurNet\UDB3\Label\Events\MadeInvisible', |
| 119 | - function (array $serializedObject) use ($labelRepository) { |
|
| 119 | + function(array $serializedObject) use ($labelRepository) { |
|
| 120 | 120 | return self::addLabelName($serializedObject, $labelRepository); |
| 121 | 121 | } |
| 122 | 122 | ); |
| 123 | 123 | |
| 124 | 124 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 125 | 125 | 'CultuurNet\UDB3\Label\Events\MadeVisible', |
| 126 | - function (array $serializedObject) use ($labelRepository) { |
|
| 126 | + function(array $serializedObject) use ($labelRepository) { |
|
| 127 | 127 | return self::addLabelName($serializedObject, $labelRepository); |
| 128 | 128 | } |
| 129 | 129 | ); |
| 130 | 130 | |
| 131 | 131 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 132 | 132 | 'CultuurNet\UDB3\Label\Events\MadePrivate', |
| 133 | - function (array $serializedObject) use ($labelRepository) { |
|
| 133 | + function(array $serializedObject) use ($labelRepository) { |
|
| 134 | 134 | return self::addLabelName($serializedObject, $labelRepository); |
| 135 | 135 | } |
| 136 | 136 | ); |
| 137 | 137 | |
| 138 | 138 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 139 | 139 | 'CultuurNet\UDB3\Label\Events\MadePublic', |
| 140 | - function (array $serializedObject) use ($labelRepository) { |
|
| 140 | + function(array $serializedObject) use ($labelRepository) { |
|
| 141 | 141 | return self::addLabelName($serializedObject, $labelRepository); |
| 142 | 142 | } |
| 143 | 143 | ); |
| 144 | 144 | |
| 145 | 145 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 146 | 146 | 'CultuurNet\UDB3\Organizer\Events\LabelAdded', |
| 147 | - function (array $serializedObject) use ($labelRepository) { |
|
| 147 | + function(array $serializedObject) use ($labelRepository) { |
|
| 148 | 148 | return self::fixOrganizerLabelEvent($serializedObject, $labelRepository); |
| 149 | 149 | } |
| 150 | 150 | ); |
| 151 | 151 | |
| 152 | 152 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 153 | 153 | 'CultuurNet\UDB3\Organizer\Events\LabelRemoved', |
| 154 | - function (array $serializedObject) use ($labelRepository) { |
|
| 154 | + function(array $serializedObject) use ($labelRepository) { |
|
| 155 | 155 | return self::fixOrganizerLabelEvent($serializedObject, $labelRepository); |
| 156 | 156 | } |
| 157 | 157 | ); |
| 158 | 158 | |
| 159 | 159 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 160 | 160 | 'CultuurNet\UDB3\Event\Events\EventWasLabelled', |
| 161 | - function (array $serializedObject) { |
|
| 161 | + function(array $serializedObject) { |
|
| 162 | 162 | $serializedObject['class'] = LabelAdded::class; |
| 163 | 163 | |
| 164 | 164 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | |
| 170 | 170 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 171 | 171 | 'CultuurNet\UDB3\Event\EventWasTagged', |
| 172 | - function (array $serializedObject) { |
|
| 172 | + function(array $serializedObject) { |
|
| 173 | 173 | $serializedObject['class'] = LabelAdded::class; |
| 174 | 174 | |
| 175 | 175 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | |
| 183 | 183 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 184 | 184 | 'CultuurNet\UDB3\Event\TagErased', |
| 185 | - function (array $serializedObject) { |
|
| 185 | + function(array $serializedObject) { |
|
| 186 | 186 | $serializedObject['class'] = LabelRemoved::class; |
| 187 | 187 | |
| 188 | 188 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | |
| 196 | 196 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 197 | 197 | 'CultuurNet\UDB3\Event\Events\Unlabelled', |
| 198 | - function (array $serializedObject) { |
|
| 198 | + function(array $serializedObject) { |
|
| 199 | 199 | $serializedObject['class'] = LabelRemoved::class; |
| 200 | 200 | |
| 201 | 201 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | |
| 211 | 211 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 212 | 212 | 'CultuurNet\UDB3\Event\EventImportedFromUDB2', |
| 213 | - function (array $serializedObject) { |
|
| 213 | + function(array $serializedObject) { |
|
| 214 | 214 | $serializedObject['class'] = EventImportedFromUDB2::class; |
| 215 | 215 | |
| 216 | 216 | return $serializedObject; |
@@ -222,7 +222,7 @@ discard block |
||
| 222 | 222 | */ |
| 223 | 223 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 224 | 224 | 'CultuurNet\UDB3\Place\Events\FacilitiesUpdated', |
| 225 | - function (array $serializedObject) { |
|
| 225 | + function(array $serializedObject) { |
|
| 226 | 226 | $serializedObject = self::replacePlaceIdWithItemId($serializedObject); |
| 227 | 227 | |
| 228 | 228 | return $serializedObject; |
@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | */ |
| 235 | 235 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 236 | 236 | 'CultuurNet\UDB3\Place\Events\GeoCoordinatesUpdated', |
| 237 | - function (array $serializedObject) { |
|
| 237 | + function(array $serializedObject) { |
|
| 238 | 238 | $serializedObject = self::replacePlaceIdWithItemId($serializedObject); |
| 239 | 239 | |
| 240 | 240 | return $serializedObject; |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | /** |
| 245 | 245 | * BOOKING INFO EVENT |
| 246 | 246 | */ |
| 247 | - $manipulateAvailability = function (array $serializedBookingInfo, $propertyName) { |
|
| 247 | + $manipulateAvailability = function(array $serializedBookingInfo, $propertyName) { |
|
| 248 | 248 | if (!isset($serializedBookingInfo[$propertyName]) || empty($serializedBookingInfo[$propertyName])) { |
| 249 | 249 | $serializedBookingInfo[$propertyName] = null; |
| 250 | 250 | return $serializedBookingInfo; |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | return $serializedBookingInfo; |
| 275 | 275 | }; |
| 276 | 276 | |
| 277 | - $manipulateBookingInfoEvent = function (array $serializedEvent) use ($manipulateAvailability) { |
|
| 277 | + $manipulateBookingInfoEvent = function(array $serializedEvent) use ($manipulateAvailability) { |
|
| 278 | 278 | $serializedEvent = self::replaceEventIdWithItemId($serializedEvent); |
| 279 | 279 | $serializedEvent = self::replacePlaceIdWithItemId($serializedEvent); |
| 280 | 280 | |
@@ -313,7 +313,7 @@ discard block |
||
| 313 | 313 | foreach ($refactoredEventEvents as $refactoredEventEvent) { |
| 314 | 314 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 315 | 315 | $refactoredEventEvent, |
| 316 | - function (array $serializedObject) { |
|
| 316 | + function(array $serializedObject) { |
|
| 317 | 317 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
| 318 | 318 | return $serializedObject; |
| 319 | 319 | } |
@@ -336,7 +336,7 @@ discard block |
||
| 336 | 336 | foreach ($refactoredPlaceEvents as $refactoredPlaceEvent) { |
| 337 | 337 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 338 | 338 | $refactoredPlaceEvent, |
| 339 | - function (array $serializedObject) { |
|
| 339 | + function(array $serializedObject) { |
|
| 340 | 340 | $serializedObject = self::replacePlaceIdWithItemId($serializedObject); |
| 341 | 341 | return $serializedObject; |
| 342 | 342 | } |
@@ -354,11 +354,11 @@ discard block |
||
| 354 | 354 | foreach ($priceInfoEvents as $priceInfoEvent) { |
| 355 | 355 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 356 | 356 | $priceInfoEvent, |
| 357 | - function (array $serializedObject) { |
|
| 357 | + function(array $serializedObject) { |
|
| 358 | 358 | $payload = &$serializedObject['payload']; |
| 359 | 359 | $priceInfo = &$payload['price_info']; |
| 360 | 360 | $tariffs = array_map( |
| 361 | - function (array $tariff) { |
|
| 361 | + function(array $tariff) { |
|
| 362 | 362 | $name = $tariff['name']; |
| 363 | 363 | if (is_string($name)) { |
| 364 | 364 | $name = ['nl' => $name]; |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | $document = $this->documentRepository->get($cdbid); |
| 39 | 39 | |
| 40 | 40 | if (!$document) { |
| 41 | - throw new EntityNotFoundException('Could not load JSON-LD document for cdbid ' . $cdbid); |
|
| 41 | + throw new EntityNotFoundException('Could not load JSON-LD document for cdbid '.$cdbid); |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | $json = $document->getBody(); |