@@ -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 | ); |
@@ -675,7 +675,7 @@ discard block |
||
| 675 | 675 | $importImages = $imageCollection->toArray(); |
| 676 | 676 | $currentImages = $currentImageCollection->toArray(); |
| 677 | 677 | |
| 678 | - $compareImages = function (Image $a, Image $b) { |
|
| 678 | + $compareImages = function(Image $a, Image $b) { |
|
| 679 | 679 | $idA = $a->getMediaObjectId()->toNative(); |
| 680 | 680 | $idB = $b->getMediaObjectId()->toNative(); |
| 681 | 681 | return strcmp($idA, $idB); |
@@ -822,7 +822,7 @@ discard block |
||
| 822 | 822 | if ($this->rejectedReason && $reason->sameValueAs($this->rejectedReason)) { |
| 823 | 823 | return true; // nothing left to do if the offer has already been rejected for the same reason |
| 824 | 824 | } else { |
| 825 | - throw new Exception('The offer has already been rejected for another reason: ' . $this->rejectedReason); |
|
| 825 | + throw new Exception('The offer has already been rejected for another reason: '.$this->rejectedReason); |
|
| 826 | 826 | } |
| 827 | 827 | } |
| 828 | 828 | |
@@ -997,7 +997,7 @@ discard block |
||
| 997 | 997 | $dutchImagesList = $imagesEvent->getImages()->toArray(); |
| 998 | 998 | $translatedImagesList = array_filter( |
| 999 | 999 | $this->images->toArray(), |
| 1000 | - function (Image $image) { |
|
| 1000 | + function(Image $image) { |
|
| 1001 | 1001 | return $image->getLanguage()->getCode() !== 'nl'; |
| 1002 | 1002 | } |
| 1003 | 1003 | ); |