Completed
Pull Request — master (#321)
by
unknown
04:34
created
src/Offer/Offer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
             if ($language->getCode() !== $this->mainLanguage->getCode()) {
158 158
                 $event = $this->createTitleTranslatedEvent($language, $title);
159 159
             } else {
160
-                $event = $this->createTitleUpdatedEvent((string) $title);
160
+                $event = $this->createTitleUpdatedEvent((string)$title);
161 161
             }
162 162
 
163 163
             $this->apply($event);
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
             if ($language->getCode() !== $this->mainLanguage->getCode()) {
175 175
                 $event = $this->createDescriptionTranslatedEvent($language, $description);
176 176
             } else {
177
-                $event = $this->createDescriptionUpdatedEvent((string) $description);
177
+                $event = $this->createDescriptionUpdatedEvent((string)$description);
178 178
             }
179 179
 
180 180
             $this->apply($event);
@@ -464,7 +464,7 @@  discard block
 block discarded – undo
464 464
             if ($this->rejectedReason && $reason->sameValueAs($this->rejectedReason)) {
465 465
                 return true; // nothing left to do if the offer has already been rejected for the same reason
466 466
             } else {
467
-                throw new Exception('The offer has already been rejected for another reason: ' . $this->rejectedReason);
467
+                throw new Exception('The offer has already been rejected for another reason: '.$this->rejectedReason);
468 468
             }
469 469
         }
470 470
 
@@ -621,7 +621,7 @@  discard block
 block discarded – undo
621 621
         $dutchImagesList = $imagesEvent->getImages()->toArray();
622 622
         $translatedImagesList = array_filter(
623 623
             $this->images->toArray(),
624
-            function (Image $image) {
624
+            function(Image $image) {
625 625
                 return $image->getLanguage()->getCode() !== 'nl';
626 626
             }
627 627
         );
Please login to merge, or discard this patch.