@@ -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 | ); |