@@ -24,7 +24,7 @@ |
||
24 | 24 | } |
25 | 25 | |
26 | 26 | /** |
27 | - * @return String |
|
27 | + * @return string |
|
28 | 28 | */ |
29 | 29 | public function getDescription() |
30 | 30 | { |
@@ -24,7 +24,7 @@ |
||
24 | 24 | } |
25 | 25 | |
26 | 26 | /** |
27 | - * @return String |
|
27 | + * @return string |
|
28 | 28 | */ |
29 | 29 | public function getDescription() |
30 | 30 | { |
@@ -24,7 +24,7 @@ |
||
24 | 24 | } |
25 | 25 | |
26 | 26 | /** |
27 | - * @return String |
|
27 | + * @return string |
|
28 | 28 | */ |
29 | 29 | public function getDescription() |
30 | 30 | { |
@@ -9,7 +9,6 @@ |
||
9 | 9 | use CultuurNet\UDB3\Variations\Model\Properties\Description; |
10 | 10 | use CultuurNet\UDB3\Variations\Model\Properties\Id; |
11 | 11 | use JsonSchema\Validator; |
12 | -use ValueObjects\String\String; |
|
13 | 12 | use stdClass; |
14 | 13 | |
15 | 14 | class EditDescriptionJSONDeserializer extends JSONDeserializer |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | */ |
24 | 24 | public static function calendar(Calendar $calendar) |
25 | 25 | { |
26 | - $offerCalenderUpdate = function ($body) use ($calendar) { |
|
26 | + $offerCalenderUpdate = function($body) use ($calendar) { |
|
27 | 27 | // Purge any existing calendar data |
28 | 28 | unset( |
29 | 29 | $body->calendarType, |
@@ -33,8 +33,8 @@ discard block |
||
33 | 33 | $body->openingHours |
34 | 34 | ); |
35 | 35 | |
36 | - return (object) array_merge( |
|
37 | - (array) $body, |
|
36 | + return (object)array_merge( |
|
37 | + (array)$body, |
|
38 | 38 | $calendar->toJsonLd() |
39 | 39 | ); |
40 | 40 | }; |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Broadway\CommandHandling\CommandBusInterface; |
6 | 6 | use Broadway\UuidGenerator\UuidGeneratorInterface; |
7 | -use Broadway\Repository\RepositoryInterface; |
|
8 | 7 | use CultuurNet\UDB3\Event\ReadModel\DocumentRepositoryInterface; |
9 | 8 | use CultuurNet\UDB3\Label; |
10 | 9 | use CultuurNet\UDB3\Offer\Commands\OfferCommandFactoryInterface; |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | |
85 | 85 | /** |
86 | 86 | * Apply the place created event. |
87 | - * @param PlaceCreate $placeCreated |
|
87 | + * @param PlaceCreated $placeCreated |
|
88 | 88 | */ |
89 | 89 | protected function applyPlaceCreated(PlaceCreated $placeCreated) |
90 | 90 | { |
@@ -114,6 +114,7 @@ discard block |
||
114 | 114 | |
115 | 115 | /** |
116 | 116 | * Handle an update command to update organizer. |
117 | + * @param string $organizerId |
|
117 | 118 | */ |
118 | 119 | public function updateOrganizer($organizerId) |
119 | 120 | { |
@@ -225,7 +226,7 @@ discard block |
||
225 | 226 | * @param string $cdbXmlNamespaceUri |
226 | 227 | * The cdb xml namespace uri. |
227 | 228 | * |
228 | - * @return Actor |
|
229 | + * @return Place |
|
229 | 230 | * The actor. |
230 | 231 | */ |
231 | 232 | public static function importFromUDB2Actor( |
@@ -19,7 +19,6 @@ discard block |
||
19 | 19 | use CultuurNet\UDB3\Place\Events\DescriptionUpdated; |
20 | 20 | use CultuurNet\UDB3\Place\Events\FacilitiesUpdated; |
21 | 21 | use CultuurNet\UDB3\Place\Events\ImageAdded; |
22 | -use CultuurNet\UDB3\Place\Events\ImageDeleted; |
|
23 | 22 | use CultuurNet\UDB3\Place\Events\ImageRemoved; |
24 | 23 | use CultuurNet\UDB3\Place\Events\ImageUpdated; |
25 | 24 | use CultuurNet\UDB3\Place\Events\MainImageSelected; |
@@ -38,7 +37,6 @@ discard block |
||
38 | 37 | use CultuurNet\UDB3\Place\Events\TypicalAgeRangeUpdated; |
39 | 38 | use CultuurNet\UDB3\Theme; |
40 | 39 | use CultuurNet\UDB3\Title; |
41 | -use Symfony\Component\EventDispatcher\Event; |
|
42 | 40 | use ValueObjects\String\String; |
43 | 41 | |
44 | 42 | class Place extends Offer implements UpdateableWithCdbXmlInterface |
@@ -48,7 +48,7 @@ |
||
48 | 48 | |
49 | 49 | /** |
50 | 50 | * @param array $data |
51 | - * @return mixed The object instance |
|
51 | + * @return AbstractImageEvent The object instance |
|
52 | 52 | */ |
53 | 53 | public static function deserialize(array $data) |
54 | 54 | { |
@@ -79,10 +79,10 @@ |
||
79 | 79 | */ |
80 | 80 | public function serialize() |
81 | 81 | { |
82 | - return parent::serialize() + array( |
|
83 | - 'media_object_id' => (string) $this->mediaObjectId, |
|
84 | - 'description' => (string) $this->description, |
|
85 | - 'copyright_holder' => (string) $this->copyrightHolder |
|
82 | + return parent::serialize() + array( |
|
83 | + 'media_object_id' => (string)$this->mediaObjectId, |
|
84 | + 'description' => (string)$this->description, |
|
85 | + 'copyright_holder' => (string)$this->copyrightHolder |
|
86 | 86 | ); |
87 | 87 | } |
88 | 88 |