@@ -259,7 +259,7 @@ discard block |
||
| 259 | 259 | */ |
| 260 | 260 | public function importLabels(Labels $labels, Labels $labelsToKeepIfAlreadyOnOrganizer) |
| 261 | 261 | { |
| 262 | - $convertLabelClass = function (\CultuurNet\UDB3\Model\ValueObject\Taxonomy\Label\Label $label) { |
|
| 262 | + $convertLabelClass = function(\CultuurNet\UDB3\Model\ValueObject\Taxonomy\Label\Label $label) { |
|
| 263 | 263 | return new Label( |
| 264 | 264 | $label->getName()->toString(), |
| 265 | 265 | $label->isVisible() |
@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | foreach ($addedLabels->asArray() as $addedLabel) { |
| 291 | 291 | $importLabels = $importLabels->with( |
| 292 | 292 | new \CultuurNet\UDB3\Model\ValueObject\Taxonomy\Label\Label( |
| 293 | - new LabelName((string) $addedLabel), |
|
| 293 | + new LabelName((string)$addedLabel), |
|
| 294 | 294 | $addedLabel->isVisible() |
| 295 | 295 | ) |
| 296 | 296 | ); |
@@ -359,7 +359,7 @@ discard block |
||
| 359 | 359 | protected function applyOrganizerImportedFromUDB2( |
| 360 | 360 | OrganizerImportedFromUDB2 $organizerImported |
| 361 | 361 | ) { |
| 362 | - $this->actorId = (string) $organizerImported->getActorId(); |
|
| 362 | + $this->actorId = (string)$organizerImported->getActorId(); |
|
| 363 | 363 | |
| 364 | 364 | // On import from UDB2 the default main language is 'nl'. |
| 365 | 365 | $this->mainLanguage = new Language('nl'); |
@@ -48,14 +48,14 @@ discard block |
||
| 48 | 48 | public function getLabelsToImport() |
| 49 | 49 | { |
| 50 | 50 | $labelNamesToKeep = array_map( |
| 51 | - function (Label $label) { |
|
| 51 | + function(Label $label) { |
|
| 52 | 52 | return $label->getName(); |
| 53 | 53 | }, |
| 54 | 54 | $this->labelsToKeepIfAlreadyOnOffer->toArray() |
| 55 | 55 | ); |
| 56 | 56 | |
| 57 | 57 | return $this->labels->filter( |
| 58 | - function (Label $label) use ($labelNamesToKeep) { |
|
| 58 | + function(Label $label) use ($labelNamesToKeep) { |
|
| 59 | 59 | return !in_array($label->getName(), $labelNamesToKeep); |
| 60 | 60 | } |
| 61 | 61 | ); |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | public function getNames() |
| 68 | 68 | { |
| 69 | 69 | return array_map( |
| 70 | - function (Label $label) { |
|
| 70 | + function(Label $label) { |
|
| 71 | 71 | return new StringLiteral($label->getName()->toString()); |
| 72 | 72 | }, |
| 73 | 73 | $this->getLabelsToImport()->toArray() |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | |
| 70 | 70 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 71 | 71 | 'CultuurNet\UDB3\Event\Events\EventCreated', |
| 72 | - function (array $serializedObject) { |
|
| 72 | + function(array $serializedObject) { |
|
| 73 | 73 | return self::removeLocationNameAndAddress( |
| 74 | 74 | self::addDefaultMainLanguage($serializedObject) |
| 75 | 75 | ); |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | |
| 79 | 79 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 80 | 80 | MajorInfoUpdated::class, |
| 81 | - function (array $serializedObject) { |
|
| 81 | + function(array $serializedObject) { |
|
| 82 | 82 | return self::removeLocationNameAndAddress( |
| 83 | 83 | self::replaceEventIdWithItemId($serializedObject) |
| 84 | 84 | ); |
@@ -87,14 +87,14 @@ discard block |
||
| 87 | 87 | |
| 88 | 88 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 89 | 89 | 'CultuurNet\UDB3\Place\Events\PlaceCreated', |
| 90 | - function (array $serializedObject) { |
|
| 90 | + function(array $serializedObject) { |
|
| 91 | 91 | return self::addDefaultMainLanguage($serializedObject); |
| 92 | 92 | } |
| 93 | 93 | ); |
| 94 | 94 | |
| 95 | 95 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 96 | 96 | 'CultuurNet\UDB3\Organizer\Events\OrganizerCreatedWithUniqueWebsite', |
| 97 | - function (array $serializedObject) { |
|
| 97 | + function(array $serializedObject) { |
|
| 98 | 98 | return self::addDefaultMainLanguage($serializedObject); |
| 99 | 99 | } |
| 100 | 100 | ); |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | |
| 106 | 106 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 107 | 107 | 'CultuurNet\UDB3\Event\TitleTranslated', |
| 108 | - function (array $serializedObject) { |
|
| 108 | + function(array $serializedObject) { |
|
| 109 | 109 | $serializedObject['class'] = TitleTranslated::class; |
| 110 | 110 | |
| 111 | 111 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | |
| 117 | 117 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 118 | 118 | 'CultuurNet\UDB3\Event\DescriptionTranslated', |
| 119 | - function (array $serializedObject) { |
|
| 119 | + function(array $serializedObject) { |
|
| 120 | 120 | $serializedObject['class'] = DescriptionTranslated::class; |
| 121 | 121 | |
| 122 | 122 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -131,49 +131,49 @@ discard block |
||
| 131 | 131 | |
| 132 | 132 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 133 | 133 | 'CultuurNet\UDB3\Label\Events\MadeInvisible', |
| 134 | - function (array $serializedObject) use ($labelRepository) { |
|
| 134 | + function(array $serializedObject) use ($labelRepository) { |
|
| 135 | 135 | return self::addLabelName($serializedObject, $labelRepository); |
| 136 | 136 | } |
| 137 | 137 | ); |
| 138 | 138 | |
| 139 | 139 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 140 | 140 | 'CultuurNet\UDB3\Label\Events\MadeVisible', |
| 141 | - function (array $serializedObject) use ($labelRepository) { |
|
| 141 | + function(array $serializedObject) use ($labelRepository) { |
|
| 142 | 142 | return self::addLabelName($serializedObject, $labelRepository); |
| 143 | 143 | } |
| 144 | 144 | ); |
| 145 | 145 | |
| 146 | 146 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 147 | 147 | 'CultuurNet\UDB3\Label\Events\MadePrivate', |
| 148 | - function (array $serializedObject) use ($labelRepository) { |
|
| 148 | + function(array $serializedObject) use ($labelRepository) { |
|
| 149 | 149 | return self::addLabelName($serializedObject, $labelRepository); |
| 150 | 150 | } |
| 151 | 151 | ); |
| 152 | 152 | |
| 153 | 153 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 154 | 154 | 'CultuurNet\UDB3\Label\Events\MadePublic', |
| 155 | - function (array $serializedObject) use ($labelRepository) { |
|
| 155 | + function(array $serializedObject) use ($labelRepository) { |
|
| 156 | 156 | return self::addLabelName($serializedObject, $labelRepository); |
| 157 | 157 | } |
| 158 | 158 | ); |
| 159 | 159 | |
| 160 | 160 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 161 | 161 | 'CultuurNet\UDB3\Organizer\Events\LabelAdded', |
| 162 | - function (array $serializedObject) use ($labelRepository) { |
|
| 162 | + function(array $serializedObject) use ($labelRepository) { |
|
| 163 | 163 | return self::fixOrganizerLabelEvent($serializedObject, $labelRepository); |
| 164 | 164 | } |
| 165 | 165 | ); |
| 166 | 166 | |
| 167 | 167 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 168 | 168 | 'CultuurNet\UDB3\Organizer\Events\LabelRemoved', |
| 169 | - function (array $serializedObject) use ($labelRepository) { |
|
| 169 | + function(array $serializedObject) use ($labelRepository) { |
|
| 170 | 170 | return self::fixOrganizerLabelEvent($serializedObject, $labelRepository); |
| 171 | 171 | } |
| 172 | 172 | ); |
| 173 | 173 | |
| 174 | 174 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 175 | 175 | 'CultuurNet\UDB3\Event\Events\EventWasLabelled', |
| 176 | - function (array $serializedObject) { |
|
| 176 | + function(array $serializedObject) { |
|
| 177 | 177 | $serializedObject['class'] = LabelAdded::class; |
| 178 | 178 | |
| 179 | 179 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | |
| 185 | 185 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 186 | 186 | 'CultuurNet\UDB3\Event\EventWasTagged', |
| 187 | - function (array $serializedObject) { |
|
| 187 | + function(array $serializedObject) { |
|
| 188 | 188 | $serializedObject['class'] = LabelAdded::class; |
| 189 | 189 | |
| 190 | 190 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | |
| 198 | 198 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 199 | 199 | 'CultuurNet\UDB3\Event\TagErased', |
| 200 | - function (array $serializedObject) { |
|
| 200 | + function(array $serializedObject) { |
|
| 201 | 201 | $serializedObject['class'] = LabelRemoved::class; |
| 202 | 202 | |
| 203 | 203 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | |
| 211 | 211 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 212 | 212 | 'CultuurNet\UDB3\Event\Events\Unlabelled', |
| 213 | - function (array $serializedObject) { |
|
| 213 | + function(array $serializedObject) { |
|
| 214 | 214 | $serializedObject['class'] = LabelRemoved::class; |
| 215 | 215 | |
| 216 | 216 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -225,7 +225,7 @@ discard block |
||
| 225 | 225 | |
| 226 | 226 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 227 | 227 | 'CultuurNet\UDB3\Event\EventImportedFromUDB2', |
| 228 | - function (array $serializedObject) { |
|
| 228 | + function(array $serializedObject) { |
|
| 229 | 229 | $serializedObject['class'] = EventImportedFromUDB2::class; |
| 230 | 230 | |
| 231 | 231 | return $serializedObject; |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | */ |
| 238 | 238 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 239 | 239 | 'CultuurNet\UDB3\Place\Events\FacilitiesUpdated', |
| 240 | - function (array $serializedObject) { |
|
| 240 | + function(array $serializedObject) { |
|
| 241 | 241 | $serializedObject = self::replacePlaceIdWithItemId($serializedObject); |
| 242 | 242 | |
| 243 | 243 | return $serializedObject; |
@@ -249,7 +249,7 @@ discard block |
||
| 249 | 249 | */ |
| 250 | 250 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 251 | 251 | 'CultuurNet\UDB3\Place\Events\GeoCoordinatesUpdated', |
| 252 | - function (array $serializedObject) { |
|
| 252 | + function(array $serializedObject) { |
|
| 253 | 253 | $serializedObject = self::replacePlaceIdWithItemId($serializedObject); |
| 254 | 254 | |
| 255 | 255 | return $serializedObject; |
@@ -259,7 +259,7 @@ discard block |
||
| 259 | 259 | /** |
| 260 | 260 | * BOOKING INFO EVENT |
| 261 | 261 | */ |
| 262 | - $manipulateAvailability = function (array $serializedBookingInfo, $propertyName) { |
|
| 262 | + $manipulateAvailability = function(array $serializedBookingInfo, $propertyName) { |
|
| 263 | 263 | if (!isset($serializedBookingInfo[$propertyName]) || empty($serializedBookingInfo[$propertyName])) { |
| 264 | 264 | $serializedBookingInfo[$propertyName] = null; |
| 265 | 265 | return $serializedBookingInfo; |
@@ -289,7 +289,7 @@ discard block |
||
| 289 | 289 | return $serializedBookingInfo; |
| 290 | 290 | }; |
| 291 | 291 | |
| 292 | - $manipulateUrlLabel = function (array $serializedBookingInfo) { |
|
| 292 | + $manipulateUrlLabel = function(array $serializedBookingInfo) { |
|
| 293 | 293 | if (!isset($serializedBookingInfo['urlLabel'])) { |
| 294 | 294 | return $serializedBookingInfo; |
| 295 | 295 | } |
@@ -315,7 +315,7 @@ discard block |
||
| 315 | 315 | return $serializedBookingInfo; |
| 316 | 316 | }; |
| 317 | 317 | |
| 318 | - $manipulateBookingInfoEvent = function ( |
|
| 318 | + $manipulateBookingInfoEvent = function( |
|
| 319 | 319 | array $serializedEvent |
| 320 | 320 | ) use ( |
| 321 | 321 | $manipulateAvailability, |
@@ -359,7 +359,7 @@ discard block |
||
| 359 | 359 | foreach ($refactoredEventEvents as $refactoredEventEvent) { |
| 360 | 360 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 361 | 361 | $refactoredEventEvent, |
| 362 | - function (array $serializedObject) { |
|
| 362 | + function(array $serializedObject) { |
|
| 363 | 363 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
| 364 | 364 | return $serializedObject; |
| 365 | 365 | } |
@@ -382,7 +382,7 @@ discard block |
||
| 382 | 382 | foreach ($refactoredPlaceEvents as $refactoredPlaceEvent) { |
| 383 | 383 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 384 | 384 | $refactoredPlaceEvent, |
| 385 | - function (array $serializedObject) { |
|
| 385 | + function(array $serializedObject) { |
|
| 386 | 386 | $serializedObject = self::replacePlaceIdWithItemId($serializedObject); |
| 387 | 387 | return $serializedObject; |
| 388 | 388 | } |
@@ -400,11 +400,11 @@ discard block |
||
| 400 | 400 | foreach ($priceInfoEvents as $priceInfoEvent) { |
| 401 | 401 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 402 | 402 | $priceInfoEvent, |
| 403 | - function (array $serializedObject) { |
|
| 403 | + function(array $serializedObject) { |
|
| 404 | 404 | $payload = &$serializedObject['payload']; |
| 405 | 405 | $priceInfo = &$payload['price_info']; |
| 406 | 406 | $tariffs = array_map( |
| 407 | - function (array $tariff) { |
|
| 407 | + function(array $tariff) { |
|
| 408 | 408 | $name = $tariff['name']; |
| 409 | 409 | if (is_string($name)) { |
| 410 | 410 | $name = ['nl' => $name]; |
@@ -425,7 +425,7 @@ discard block |
||
| 425 | 425 | */ |
| 426 | 426 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 427 | 427 | 'CultuurNet\UDB3\Role\Events\ConstraintCreated', |
| 428 | - function (array $serializedObject) { |
|
| 428 | + function(array $serializedObject) { |
|
| 429 | 429 | $serializedObject['class'] = ConstraintAdded::class; |
| 430 | 430 | return self::addDefaultSapiVersion($serializedObject); |
| 431 | 431 | } |
@@ -433,14 +433,14 @@ discard block |
||
| 433 | 433 | |
| 434 | 434 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 435 | 435 | ConstraintUpdated::class, |
| 436 | - function (array $serializedObject) { |
|
| 436 | + function(array $serializedObject) { |
|
| 437 | 437 | return self::addDefaultSapiVersion($serializedObject); |
| 438 | 438 | } |
| 439 | 439 | ); |
| 440 | 440 | |
| 441 | 441 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 442 | 442 | ConstraintRemoved::class, |
| 443 | - function (array $serializedObject) { |
|
| 443 | + function(array $serializedObject) { |
|
| 444 | 444 | return self::addDefaultSapiVersion($serializedObject); |
| 445 | 445 | } |
| 446 | 446 | ); |
@@ -9,6 +9,6 @@ |
||
| 9 | 9 | { |
| 10 | 10 | public static function forEvent(string $eventId, AudienceType $audienceType) |
| 11 | 11 | { |
| 12 | - return new self('Audience type ' . $audienceType->toNative() . ' is incompatible with event ' . $eventId); |
|
| 12 | + return new self('Audience type '.$audienceType->toNative().' is incompatible with event '.$eventId); |
|
| 13 | 13 | } |
| 14 | 14 | } |
@@ -40,9 +40,9 @@ |
||
| 40 | 40 | |
| 41 | 41 | public function byId(StringLiteral $typeId): EventType |
| 42 | 42 | { |
| 43 | - if (!array_key_exists((string) $typeId, $this->types)) { |
|
| 44 | - throw new Exception("Unknown place type id: " . $typeId); |
|
| 43 | + if (!array_key_exists((string)$typeId, $this->types)) { |
|
| 44 | + throw new Exception("Unknown place type id: ".$typeId); |
|
| 45 | 45 | } |
| 46 | - return $this->types[(string) $typeId]; |
|
| 46 | + return $this->types[(string)$typeId]; |
|
| 47 | 47 | } |
| 48 | 48 | } |
@@ -42,9 +42,9 @@ |
||
| 42 | 42 | |
| 43 | 43 | public function byId(StringLiteral $typeId): EventType |
| 44 | 44 | { |
| 45 | - if (!array_key_exists((string) $typeId, $this->types)) { |
|
| 46 | - throw new Exception("Unknown event type id: " . $typeId); |
|
| 45 | + if (!array_key_exists((string)$typeId, $this->types)) { |
|
| 46 | + throw new Exception("Unknown event type id: ".$typeId); |
|
| 47 | 47 | } |
| 48 | - return $this->types[(string) $typeId]; |
|
| 48 | + return $this->types[(string)$typeId]; |
|
| 49 | 49 | } |
| 50 | 50 | } |
@@ -8,11 +8,11 @@ |
||
| 8 | 8 | { |
| 9 | 9 | public static function becauseItIsDeleted(string $placeId): self |
| 10 | 10 | { |
| 11 | - return new static('Cannot mark place ' . $placeId . ' as duplicate because it is deleted'); |
|
| 11 | + return new static('Cannot mark place '.$placeId.' as duplicate because it is deleted'); |
|
| 12 | 12 | } |
| 13 | 13 | |
| 14 | 14 | public static function becauseItIsAlreadyADuplicate(string $placeId): self |
| 15 | 15 | { |
| 16 | - return new static('Cannot mark place ' . $placeId . ' as duplicate because it is already a duplicate'); |
|
| 16 | + return new static('Cannot mark place '.$placeId.' as duplicate because it is already a duplicate'); |
|
| 17 | 17 | } |
| 18 | 18 | } |
@@ -8,11 +8,11 @@ |
||
| 8 | 8 | { |
| 9 | 9 | public static function becauseItIsDeleted(string $placeId): self |
| 10 | 10 | { |
| 11 | - return new static('Cannot mark place ' . $placeId . ' as canonical because it is deleted'); |
|
| 11 | + return new static('Cannot mark place '.$placeId.' as canonical because it is deleted'); |
|
| 12 | 12 | } |
| 13 | 13 | |
| 14 | 14 | public static function becauseItIsAlreadyADuplicate(string $placeId): self |
| 15 | 15 | { |
| 16 | - return new static('Cannot mark place ' . $placeId . ' as canonical because it is a duplicate'); |
|
| 16 | + return new static('Cannot mark place '.$placeId.' as canonical because it is a duplicate'); |
|
| 17 | 17 | } |
| 18 | 18 | } |
@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | $sameFacilities = array_uintersect( |
| 222 | 222 | $facilities1, |
| 223 | 223 | $facilities2, |
| 224 | - function (Facility $facility1, Facility $facility2) { |
|
| 224 | + function(Facility $facility1, Facility $facility2) { |
|
| 225 | 225 | return strcmp($facility1->getId(), $facility2->getId()); |
| 226 | 226 | } |
| 227 | 227 | ); |
@@ -270,7 +270,7 @@ discard block |
||
| 270 | 270 | */ |
| 271 | 271 | public function importLabels(Labels $labels, Labels $labelsToKeepIfAlreadyOnOffer, Labels $labelsToRemoveWhenOnOffer) |
| 272 | 272 | { |
| 273 | - $convertLabelClass = function (\CultuurNet\UDB3\Model\ValueObject\Taxonomy\Label\Label $label) { |
|
| 273 | + $convertLabelClass = function(\CultuurNet\UDB3\Model\ValueObject\Taxonomy\Label\Label $label) { |
|
| 274 | 274 | return new Label( |
| 275 | 275 | $label->getName()->toString(), |
| 276 | 276 | $label->isVisible() |
@@ -306,7 +306,7 @@ discard block |
||
| 306 | 306 | foreach ($addedLabels->asArray() as $addedLabel) { |
| 307 | 307 | $importLabels = $importLabels->with( |
| 308 | 308 | new \CultuurNet\UDB3\Model\ValueObject\Taxonomy\Label\Label( |
| 309 | - new LabelName((string) $addedLabel), |
|
| 309 | + new LabelName((string)$addedLabel), |
|
| 310 | 310 | $addedLabel->isVisible() |
| 311 | 311 | ) |
| 312 | 312 | ); |
@@ -707,7 +707,7 @@ discard block |
||
| 707 | 707 | $importImages = $imageCollection->toArray(); |
| 708 | 708 | $currentImages = $currentImageCollection->toArray(); |
| 709 | 709 | |
| 710 | - $compareImages = function (Image $a, Image $b) { |
|
| 710 | + $compareImages = function(Image $a, Image $b) { |
|
| 711 | 711 | $idA = $a->getMediaObjectId()->toNative(); |
| 712 | 712 | $idB = $b->getMediaObjectId()->toNative(); |
| 713 | 713 | return strcmp($idA, $idB); |
@@ -854,7 +854,7 @@ discard block |
||
| 854 | 854 | if ($this->rejectedReason && $reason->sameValueAs($this->rejectedReason)) { |
| 855 | 855 | return true; // nothing left to do if the offer has already been rejected for the same reason |
| 856 | 856 | } else { |
| 857 | - throw new Exception('The offer has already been rejected for another reason: ' . $this->rejectedReason); |
|
| 857 | + throw new Exception('The offer has already been rejected for another reason: '.$this->rejectedReason); |
|
| 858 | 858 | } |
| 859 | 859 | } |
| 860 | 860 | |
@@ -1032,7 +1032,7 @@ discard block |
||
| 1032 | 1032 | $dutchImagesList = $imagesEvent->getImages()->toArray(); |
| 1033 | 1033 | $translatedImagesList = array_filter( |
| 1034 | 1034 | $this->images->toArray(), |
| 1035 | - function (Image $image) { |
|
| 1035 | + function(Image $image) { |
|
| 1036 | 1036 | return $image->getLanguage()->getCode() !== 'nl'; |
| 1037 | 1037 | } |
| 1038 | 1038 | ); |