@@ -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 | ); |
@@ -265,7 +265,7 @@ discard block |
||
265 | 265 | */ |
266 | 266 | public function importLabels(Labels $labels, Labels $labelsToKeepIfAlreadyOnOffer) |
267 | 267 | { |
268 | - $convertLabelClass = function (\CultuurNet\UDB3\Model\ValueObject\Taxonomy\Label\Label $label) { |
|
268 | + $convertLabelClass = function(\CultuurNet\UDB3\Model\ValueObject\Taxonomy\Label\Label $label) { |
|
269 | 269 | return new Label( |
270 | 270 | $label->getName()->toString(), |
271 | 271 | $label->isVisible() |
@@ -296,7 +296,7 @@ discard block |
||
296 | 296 | foreach ($addedLabels->asArray() as $addedLabel) { |
297 | 297 | $importLabels = $importLabels->with( |
298 | 298 | new \CultuurNet\UDB3\Model\ValueObject\Taxonomy\Label\Label( |
299 | - new LabelName((string) $addedLabel), |
|
299 | + new LabelName((string)$addedLabel), |
|
300 | 300 | $addedLabel->isVisible() |
301 | 301 | ) |
302 | 302 | ); |
@@ -697,7 +697,7 @@ discard block |
||
697 | 697 | $importImages = $imageCollection->toArray(); |
698 | 698 | $currentImages = $currentImageCollection->toArray(); |
699 | 699 | |
700 | - $compareImages = function (Image $a, Image $b) { |
|
700 | + $compareImages = function(Image $a, Image $b) { |
|
701 | 701 | $idA = $a->getMediaObjectId()->toNative(); |
702 | 702 | $idB = $b->getMediaObjectId()->toNative(); |
703 | 703 | return strcmp($idA, $idB); |
@@ -844,7 +844,7 @@ discard block |
||
844 | 844 | if ($this->rejectedReason && $reason->sameValueAs($this->rejectedReason)) { |
845 | 845 | return true; // nothing left to do if the offer has already been rejected for the same reason |
846 | 846 | } else { |
847 | - throw new Exception('The offer has already been rejected for another reason: ' . $this->rejectedReason); |
|
847 | + throw new Exception('The offer has already been rejected for another reason: '.$this->rejectedReason); |
|
848 | 848 | } |
849 | 849 | } |
850 | 850 | |
@@ -1022,7 +1022,7 @@ discard block |
||
1022 | 1022 | $dutchImagesList = $imagesEvent->getImages()->toArray(); |
1023 | 1023 | $translatedImagesList = array_filter( |
1024 | 1024 | $this->images->toArray(), |
1025 | - function (Image $image) { |
|
1025 | + function(Image $image) { |
|
1026 | 1026 | return $image->getLanguage()->getCode() !== 'nl'; |
1027 | 1027 | } |
1028 | 1028 | ); |