@@ -60,7 +60,6 @@ |
||
| 60 | 60 | use CultuurNet\UDB3\Media\Image; |
| 61 | 61 | use CultuurNet\UDB3\Model\ValueObject\Taxonomy\Label\Labels; |
| 62 | 62 | use CultuurNet\UDB3\Offer\AgeRange; |
| 63 | -use CultuurNet\UDB3\Offer\Commands\Image\AbstractUpdateImage; |
|
| 64 | 63 | use CultuurNet\UDB3\Offer\Offer; |
| 65 | 64 | use CultuurNet\UDB3\Offer\WorkflowStatus; |
| 66 | 65 | use CultuurNet\UDB3\PriceInfo\PriceInfo; |
@@ -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 | ); |
@@ -342,7 +342,7 @@ discard block |
||
| 342 | 342 | if ($language->getCode() !== $this->mainLanguage->getCode()) { |
| 343 | 343 | $event = $this->createDescriptionTranslatedEvent($language, $description); |
| 344 | 344 | } else { |
| 345 | - $event = $this->createDescriptionUpdatedEvent((string) $description); |
|
| 345 | + $event = $this->createDescriptionUpdatedEvent((string)$description); |
|
| 346 | 346 | } |
| 347 | 347 | |
| 348 | 348 | $this->apply($event); |
@@ -658,7 +658,7 @@ discard block |
||
| 658 | 658 | $newImages = $imageCollection->toArray(); |
| 659 | 659 | $currentImages = $currentImageCollection->toArray(); |
| 660 | 660 | |
| 661 | - $compareImages = function (Image $a, Image $b) { |
|
| 661 | + $compareImages = function(Image $a, Image $b) { |
|
| 662 | 662 | $idA = $a->getMediaObjectId()->toNative(); |
| 663 | 663 | $idB = $b->getMediaObjectId()->toNative(); |
| 664 | 664 | return strcmp($idA, $idB); |
@@ -805,7 +805,7 @@ discard block |
||
| 805 | 805 | if ($this->rejectedReason && $reason->sameValueAs($this->rejectedReason)) { |
| 806 | 806 | return true; // nothing left to do if the offer has already been rejected for the same reason |
| 807 | 807 | } else { |
| 808 | - throw new Exception('The offer has already been rejected for another reason: ' . $this->rejectedReason); |
|
| 808 | + throw new Exception('The offer has already been rejected for another reason: '.$this->rejectedReason); |
|
| 809 | 809 | } |
| 810 | 810 | } |
| 811 | 811 | |
@@ -980,7 +980,7 @@ discard block |
||
| 980 | 980 | $dutchImagesList = $imagesEvent->getImages()->toArray(); |
| 981 | 981 | $translatedImagesList = array_filter( |
| 982 | 982 | $this->images->toArray(), |
| 983 | - function (Image $image) { |
|
| 983 | + function(Image $image) { |
|
| 984 | 984 | return $image->getLanguage()->getCode() !== 'nl'; |
| 985 | 985 | } |
| 986 | 986 | ); |