@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | $sameFacilities = array_uintersect( |
216 | 216 | $facilities1, |
217 | 217 | $facilities2, |
218 | - function (Facility $facility1, Facility $facility2) { |
|
218 | + function(Facility $facility1, Facility $facility2) { |
|
219 | 219 | return strcmp($facility1->getId(), $facility2->getId()); |
220 | 220 | } |
221 | 221 | ); |
@@ -271,7 +271,7 @@ discard block |
||
271 | 271 | // Convert to imported labels to label collection. |
272 | 272 | $importLabelsCollection = new LabelCollection( |
273 | 273 | array_map( |
274 | - function (\CultuurNet\UDB3\Model\ValueObject\Taxonomy\Label\Label $label) { |
|
274 | + function(\CultuurNet\UDB3\Model\ValueObject\Taxonomy\Label\Label $label) { |
|
275 | 275 | return new Label( |
276 | 276 | $label->getName()->toString(), |
277 | 277 | $label->isVisible() |
@@ -331,7 +331,7 @@ discard block |
||
331 | 331 | if ($language->getCode() !== $this->mainLanguage->getCode()) { |
332 | 332 | $event = $this->createDescriptionTranslatedEvent($language, $description); |
333 | 333 | } else { |
334 | - $event = $this->createDescriptionUpdatedEvent((string) $description); |
|
334 | + $event = $this->createDescriptionUpdatedEvent((string)$description); |
|
335 | 335 | } |
336 | 336 | |
337 | 337 | $this->apply($event); |
@@ -741,7 +741,7 @@ discard block |
||
741 | 741 | if ($this->rejectedReason && $reason->sameValueAs($this->rejectedReason)) { |
742 | 742 | return true; // nothing left to do if the offer has already been rejected for the same reason |
743 | 743 | } else { |
744 | - throw new Exception('The offer has already been rejected for another reason: ' . $this->rejectedReason); |
|
744 | + throw new Exception('The offer has already been rejected for another reason: '.$this->rejectedReason); |
|
745 | 745 | } |
746 | 746 | } |
747 | 747 | |
@@ -916,7 +916,7 @@ discard block |
||
916 | 916 | $dutchImagesList = $imagesEvent->getImages()->toArray(); |
917 | 917 | $translatedImagesList = array_filter( |
918 | 918 | $this->images->toArray(), |
919 | - function (Image $image) { |
|
919 | + function(Image $image) { |
|
920 | 920 | return $image->getLanguage()->getCode() !== 'nl'; |
921 | 921 | } |
922 | 922 | ); |