@@ -21,6 +21,7 @@ discard block |
||
21 | 21 | * @param string $id |
22 | 22 | * @param Language $language |
23 | 23 | * @param Description $description |
24 | + * @return string |
|
24 | 25 | */ |
25 | 26 | public function updateDescription($id, Language $language, Description $description); |
26 | 27 | |
@@ -29,6 +30,7 @@ discard block |
||
29 | 30 | * |
30 | 31 | * @param string $id |
31 | 32 | * @param AgeRange $ageRange |
33 | + * @return string |
|
32 | 34 | */ |
33 | 35 | public function updateTypicalAgeRange($id, AgeRange $ageRange); |
34 | 36 | |
@@ -36,6 +38,7 @@ discard block |
||
36 | 38 | * Delete the typical age range of a place. |
37 | 39 | * |
38 | 40 | * @param string $id |
41 | + * @return string |
|
39 | 42 | */ |
40 | 43 | public function deleteTypicalAgeRange($id); |
41 | 44 | |
@@ -44,6 +47,7 @@ discard block |
||
44 | 47 | * |
45 | 48 | * @param string $id |
46 | 49 | * @param string $organizerId |
50 | + * @return string |
|
47 | 51 | */ |
48 | 52 | public function updateOrganizer($id, $organizerId); |
49 | 53 | |
@@ -52,6 +56,7 @@ discard block |
||
52 | 56 | * |
53 | 57 | * @param string $id |
54 | 58 | * @param string $organizerId |
59 | + * @return string |
|
55 | 60 | */ |
56 | 61 | public function deleteOrganizer($id, $organizerId); |
57 | 62 | |
@@ -60,6 +65,7 @@ discard block |
||
60 | 65 | * |
61 | 66 | * @param string $id |
62 | 67 | * @param ContactPoint $contactPoint |
68 | + * @return string |
|
63 | 69 | */ |
64 | 70 | public function updateContactPoint($id, ContactPoint $contactPoint); |
65 | 71 | |
@@ -68,6 +74,7 @@ discard block |
||
68 | 74 | * |
69 | 75 | * @param string $id |
70 | 76 | * @param Image $image |
77 | + * @return string |
|
71 | 78 | */ |
72 | 79 | public function addImage($id, Image $image); |
73 | 80 | |
@@ -94,6 +101,7 @@ discard block |
||
94 | 101 | * |
95 | 102 | * @param string $id |
96 | 103 | * @param Image $image |
104 | + * @return string |
|
97 | 105 | */ |
98 | 106 | public function removeImage($id, Image $image); |
99 | 107 |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | if ($language->getCode() !== $this->mainLanguage->getCode()) { |
162 | 162 | $event = $this->createDescriptionTranslatedEvent($language, $description); |
163 | 163 | } else { |
164 | - $event = $this->createDescriptionUpdatedEvent((string) $description); |
|
164 | + $event = $this->createDescriptionUpdatedEvent((string)$description); |
|
165 | 165 | } |
166 | 166 | |
167 | 167 | $this->apply($event); |
@@ -449,7 +449,7 @@ discard block |
||
449 | 449 | if ($this->rejectedReason && $reason->sameValueAs($this->rejectedReason)) { |
450 | 450 | return true; // nothing left to do if the offer has already been rejected for the same reason |
451 | 451 | } else { |
452 | - throw new Exception('The offer has already been rejected for another reason: ' . $this->rejectedReason); |
|
452 | + throw new Exception('The offer has already been rejected for another reason: '.$this->rejectedReason); |
|
453 | 453 | } |
454 | 454 | } |
455 | 455 | |
@@ -593,7 +593,7 @@ discard block |
||
593 | 593 | $dutchImagesList = $imagesEvent->getImages()->toArray(); |
594 | 594 | $translatedImagesList = array_filter( |
595 | 595 | $this->images->toArray(), |
596 | - function (Image $image) { |
|
596 | + function(Image $image) { |
|
597 | 597 | return $image->getLanguage()->getCode() !== 'nl'; |
598 | 598 | } |
599 | 599 | ); |