@@ -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 | } |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | ); |
213 | 213 | |
214 | 214 | $calendarJsonLD = $placeCreated->getCalendar()->toJsonLd(); |
215 | - $jsonLD = (object) array_merge((array) $jsonLD, $calendarJsonLD); |
|
215 | + $jsonLD = (object)array_merge((array)$jsonLD, $calendarJsonLD); |
|
216 | 216 | |
217 | 217 | $availableTo = AvailableTo::createFromCalendar($placeCreated->getCalendar()); |
218 | 218 | $jsonLD->availableTo = (string)$availableTo; |
@@ -285,8 +285,8 @@ discard block |
||
285 | 285 | $jsonLD->availableTo = (string)$availableTo; |
286 | 286 | |
287 | 287 | // Remove old theme and event type. |
288 | - $jsonLD->terms = array_filter($jsonLD->terms, function ($term) { |
|
289 | - return $term->domain !== EventType::DOMAIN && $term->domain !== Theme::DOMAIN; |
|
288 | + $jsonLD->terms = array_filter($jsonLD->terms, function($term) { |
|
289 | + return $term->domain !== EventType::DOMAIN && $term->domain !== Theme::DOMAIN; |
|
290 | 290 | }); |
291 | 291 | |
292 | 292 | $eventType = $majorInfoUpdated->getEventType(); |
@@ -352,7 +352,7 @@ discard block |
||
352 | 352 | // @replay_i18n |
353 | 353 | // @see https://jira.uitdatabank.be/browse/III-2201 |
354 | 354 | $mainLanguageCode = $this->getMainLanguage($jsonLd)->getCode(); |
355 | - $jsonLd->address = (object) [ |
|
355 | + $jsonLd->address = (object)[ |
|
356 | 356 | $mainLanguageCode => $jsonLd->address, |
357 | 357 | ]; |
358 | 358 | } |
@@ -370,7 +370,7 @@ discard block |
||
370 | 370 | |
371 | 371 | $placeLd = $document->getBody(); |
372 | 372 | |
373 | - $placeLd->geo = (object) [ |
|
373 | + $placeLd->geo = (object)[ |
|
374 | 374 | 'latitude' => $geoCoordinatesUpdated->getCoordinates()->getLatitude()->toDouble(), |
375 | 375 | 'longitude' => $geoCoordinatesUpdated->getCoordinates()->getLongitude()->toDouble(), |
376 | 376 | ]; |
@@ -382,7 +382,7 @@ discard block |
||
382 | 382 | { |
383 | 383 | $document = $this->loadPlaceDocumentFromRepositoryById($markedAsDuplicate->getPlaceId()); |
384 | 384 | |
385 | - return $document->apply(function ($placeLd) use ($markedAsDuplicate) { |
|
385 | + return $document->apply(function($placeLd) use ($markedAsDuplicate) { |
|
386 | 386 | $placeLd->duplicateOf = $this->iriGenerator->iri($markedAsDuplicate->getDuplicateOf()); |
387 | 387 | return $placeLd; |
388 | 388 | }); |
@@ -392,7 +392,7 @@ discard block |
||
392 | 392 | { |
393 | 393 | $document = $this->loadPlaceDocumentFromRepositoryById($markedAsCanonical->getPlaceId()); |
394 | 394 | |
395 | - return $document->apply(function ($placeLd) use ($markedAsCanonical) { |
|
395 | + return $document->apply(function($placeLd) use ($markedAsCanonical) { |
|
396 | 396 | $placeLd->duplicatedBy[] = $this->iriGenerator->iri($markedAsCanonical->getDuplicatedBy()); |
397 | 397 | foreach ($markedAsCanonical->getDuplicatesOfDuplicate() as $duplicateOfDuplicate) { |
398 | 398 | $placeLd->duplicatedBy[] = $this->iriGenerator->iri($duplicateOfDuplicate); |
@@ -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 | } |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | if (!$result->getType()->sameValueAs(OfferType::EVENT())) { |
64 | 64 | $skipped[] = $result->getId(); |
65 | 65 | $this->logger->warning( |
66 | - 'Skipped result with id ' . $result->getId() . ' because it\'s not an event according to the @id parser.' |
|
66 | + 'Skipped result with id '.$result->getId().' because it\'s not an event according to the @id parser.' |
|
67 | 67 | ); |
68 | 68 | continue; |
69 | 69 | } |
@@ -75,14 +75,14 @@ discard block |
||
75 | 75 | $updated++; |
76 | 76 | |
77 | 77 | $this->logger->info( |
78 | - 'Dispatched UpdateLocation for result with id ' . $result->getId() |
|
78 | + 'Dispatched UpdateLocation for result with id '.$result->getId() |
|
79 | 79 | ); |
80 | 80 | } |
81 | 81 | |
82 | - $this->logger->info('Received ' . ($updated + count($skipped)) . ' results from the search api.'); |
|
83 | - $this->logger->info('Updated ' . $updated . ' events to the canonical location.'); |
|
82 | + $this->logger->info('Received '.($updated + count($skipped)).' results from the search api.'); |
|
83 | + $this->logger->info('Updated '.$updated.' events to the canonical location.'); |
|
84 | 84 | $this->logger->info( |
85 | - 'Skipped ' . count($skipped) . ' events:' . PHP_EOL . implode(PHP_EOL, $skipped) |
|
85 | + 'Skipped '.count($skipped).' events:'.PHP_EOL.implode(PHP_EOL, $skipped) |
|
86 | 86 | ); |
87 | 87 | } |
88 | 88 | } |
@@ -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 | ); |