Completed
Pull Request — master (#321)
by
unknown
04:31
created
src/Event/EventEditingServiceInterface.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -22,6 +22,7 @@  discard block
 block discarded – undo
22 22
      * @param string $id
23 23
      * @param Language $language
24 24
      * @param StringLiteral $title
25
+     * @return string
25 26
      */
26 27
     public function updateTitle($id, Language $language, StringLiteral $title);
27 28
 
@@ -31,6 +32,7 @@  discard block
 block discarded – undo
31 32
      * @param string $id
32 33
      * @param Language $language
33 34
      * @param Description $description
35
+     * @return string
34 36
      */
35 37
     public function updateDescription($id, Language $language, Description $description);
36 38
 
@@ -39,6 +41,7 @@  discard block
 block discarded – undo
39 41
      *
40 42
      * @param string $id
41 43
      * @param AgeRange $ageRange
44
+     * @return string
42 45
      */
43 46
     public function updateTypicalAgeRange($id, AgeRange $ageRange);
44 47
 
@@ -46,6 +49,7 @@  discard block
 block discarded – undo
46 49
      * Delete the typical age range of a place.
47 50
      *
48 51
      * @param string $id
52
+     * @return string
49 53
      */
50 54
     public function deleteTypicalAgeRange($id);
51 55
 
@@ -54,6 +58,7 @@  discard block
 block discarded – undo
54 58
      *
55 59
      * @param string $id
56 60
      * @param string $organizerId
61
+     * @return string
57 62
      */
58 63
     public function updateOrganizer($id, $organizerId);
59 64
 
@@ -62,6 +67,7 @@  discard block
 block discarded – undo
62 67
      *
63 68
      * @param string $id
64 69
      * @param string $organizerId
70
+     * @return string
65 71
      */
66 72
     public function deleteOrganizer($id, $organizerId);
67 73
 
@@ -70,6 +76,7 @@  discard block
 block discarded – undo
70 76
      *
71 77
      * @param string $id
72 78
      * @param ContactPoint $contactPoint
79
+     * @return string
73 80
      */
74 81
     public function updateContactPoint($id, ContactPoint $contactPoint);
75 82
 
@@ -78,6 +85,7 @@  discard block
 block discarded – undo
78 85
      *
79 86
      * @param string $id
80 87
      * @param Image $image
88
+     * @return string
81 89
      */
82 90
     public function addImage($id, Image $image);
83 91
 
@@ -104,6 +112,7 @@  discard block
 block discarded – undo
104 112
      *
105 113
      * @param string $id
106 114
      * @param Image $image
115
+     * @return string
107 116
      */
108 117
     public function removeImage($id, Image $image);
109 118
 
Please login to merge, or discard this patch.
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.