Completed
Pull Request — master (#342)
by Luc
05:03
created
src/Offer/Offer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
         $sameFacilities = array_uintersect(
206 206
             $facilities1,
207 207
             $facilities2,
208
-            function (Facility $facility1, Facility $facility2) {
208
+            function(Facility $facility1, Facility $facility2) {
209 209
                 return strcmp($facility1->getId(), $facility2->getId());
210 210
             }
211 211
         );
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
             if ($language->getCode() !== $this->mainLanguage->getCode()) {
276 276
                 $event = $this->createDescriptionTranslatedEvent($language, $description);
277 277
             } else {
278
-                $event = $this->createDescriptionUpdatedEvent((string) $description);
278
+                $event = $this->createDescriptionUpdatedEvent((string)$description);
279 279
             }
280 280
 
281 281
             $this->apply($event);
@@ -643,7 +643,7 @@  discard block
 block discarded – undo
643 643
             if ($this->rejectedReason && $reason->sameValueAs($this->rejectedReason)) {
644 644
                 return true; // nothing left to do if the offer has already been rejected for the same reason
645 645
             } else {
646
-                throw new Exception('The offer has already been rejected for another reason: ' . $this->rejectedReason);
646
+                throw new Exception('The offer has already been rejected for another reason: '.$this->rejectedReason);
647 647
             }
648 648
         }
649 649
 
@@ -800,7 +800,7 @@  discard block
 block discarded – undo
800 800
         $dutchImagesList = $imagesEvent->getImages()->toArray();
801 801
         $translatedImagesList = array_filter(
802 802
             $this->images->toArray(),
803
-            function (Image $image) {
803
+            function(Image $image) {
804 804
                 return $image->getLanguage()->getCode() !== 'nl';
805 805
             }
806 806
         );
Please login to merge, or discard this patch.