@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | $sameFacilities = array_uintersect( |
217 | 217 | $facilities1, |
218 | 218 | $facilities2, |
219 | - function (Facility $facility1, Facility $facility2) { |
|
219 | + function(Facility $facility1, Facility $facility2) { |
|
220 | 220 | return strcmp($facility1->getId(), $facility2->getId()); |
221 | 221 | } |
222 | 222 | ); |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | // Convert the imported labels to label collection. |
268 | 268 | $importLabelsCollection = new LabelCollection( |
269 | 269 | array_map( |
270 | - function (\CultuurNet\UDB3\Model\ValueObject\Taxonomy\Label\Label $label) { |
|
270 | + function(\CultuurNet\UDB3\Model\ValueObject\Taxonomy\Label\Label $label) { |
|
271 | 271 | return new Label( |
272 | 272 | $label->getName()->toString(), |
273 | 273 | $label->isVisible() |
@@ -291,7 +291,7 @@ discard block |
||
291 | 291 | foreach ($addedLabels->asArray() as $addedLabel) { |
292 | 292 | $importLabels = $importLabels->with( |
293 | 293 | new \CultuurNet\UDB3\Model\ValueObject\Taxonomy\Label\Label( |
294 | - new LabelName((string) $addedLabel), |
|
294 | + new LabelName((string)$addedLabel), |
|
295 | 295 | $addedLabel->isVisible() |
296 | 296 | ) |
297 | 297 | ); |
@@ -340,7 +340,7 @@ discard block |
||
340 | 340 | if ($language->getCode() !== $this->mainLanguage->getCode()) { |
341 | 341 | $event = $this->createDescriptionTranslatedEvent($language, $description); |
342 | 342 | } else { |
343 | - $event = $this->createDescriptionUpdatedEvent((string) $description); |
|
343 | + $event = $this->createDescriptionUpdatedEvent((string)$description); |
|
344 | 344 | } |
345 | 345 | |
346 | 346 | $this->apply($event); |
@@ -750,7 +750,7 @@ discard block |
||
750 | 750 | if ($this->rejectedReason && $reason->sameValueAs($this->rejectedReason)) { |
751 | 751 | return true; // nothing left to do if the offer has already been rejected for the same reason |
752 | 752 | } else { |
753 | - throw new Exception('The offer has already been rejected for another reason: ' . $this->rejectedReason); |
|
753 | + throw new Exception('The offer has already been rejected for another reason: '.$this->rejectedReason); |
|
754 | 754 | } |
755 | 755 | } |
756 | 756 | |
@@ -925,7 +925,7 @@ discard block |
||
925 | 925 | $dutchImagesList = $imagesEvent->getImages()->toArray(); |
926 | 926 | $translatedImagesList = array_filter( |
927 | 927 | $this->images->toArray(), |
928 | - function (Image $image) { |
|
928 | + function(Image $image) { |
|
929 | 929 | return $image->getLanguage()->getCode() !== 'nl'; |
930 | 930 | } |
931 | 931 | ); |