@@ -12,7 +12,6 @@ |
||
12 | 12 | protected $emailAddress; |
13 | 13 | |
14 | 14 | /** |
15 | - * @param String $userId |
|
16 | 15 | */ |
17 | 16 | public function __construct(EmailAddress $emailAddress) |
18 | 17 | { |
@@ -7,7 +7,6 @@ |
||
7 | 7 | |
8 | 8 | namespace CultuurNet\UDB3; |
9 | 9 | |
10 | -use Assert\Assertion; |
|
11 | 10 | use Broadway\Domain\AggregateRoot; |
12 | 11 | use Broadway\Domain\DomainEventStream; |
13 | 12 |
@@ -70,7 +70,7 @@ |
||
70 | 70 | } |
71 | 71 | |
72 | 72 | /** |
73 | - * @param mixed $json |
|
73 | + * @param stdClass $json |
|
74 | 74 | * |
75 | 75 | * @throws ValidationException |
76 | 76 | */ |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @file |
|
4 | - */ |
|
3 | + * @file |
|
4 | + */ |
|
5 | 5 | |
6 | 6 | namespace CultuurNet\UDB3\Variations; |
7 | 7 |
@@ -96,7 +96,7 @@ |
||
96 | 96 | private function getErrorMessages($validationErrors) |
97 | 97 | { |
98 | 98 | $errorMessages = array_map( |
99 | - function ($error) { |
|
99 | + function($error) { |
|
100 | 100 | return $error['message']; |
101 | 101 | }, |
102 | 102 | $validationErrors |
@@ -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 |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | /** |
47 | 47 | * @param stdClass $json |
48 | 48 | * |
49 | - * @return CreateEventVariation |
|
49 | + * @return EditDescription |
|
50 | 50 | */ |
51 | 51 | private function createTypedObject(stdClass $json) |
52 | 52 | { |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | } |
58 | 58 | |
59 | 59 | /** |
60 | - * @param mixed $json |
|
60 | + * @param stdClass $json |
|
61 | 61 | * |
62 | 62 | * @throws ValidationException |
63 | 63 | */ |
@@ -96,7 +96,7 @@ |
||
96 | 96 | private function getErrorMessages($validationErrors) |
97 | 97 | { |
98 | 98 | $errorMessages = array_map( |
99 | - function ($error) { |
|
99 | + function($error) { |
|
100 | 100 | return $error['message']; |
101 | 101 | }, |
102 | 102 | $validationErrors |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @file |
|
4 | - */ |
|
3 | + * @file |
|
4 | + */ |
|
5 | 5 | |
6 | 6 | namespace CultuurNet\UDB3\Variations; |
7 | 7 |
@@ -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 |
@@ -70,10 +70,10 @@ |
||
70 | 70 | public function serialize() |
71 | 71 | { |
72 | 72 | return [ |
73 | - 'streetAddress' => $this->streetAddress, |
|
74 | - 'postalCode' => $this->postalCode, |
|
75 | - 'locality' => $this->locality, |
|
76 | - 'country' => $this->country, |
|
73 | + 'streetAddress' => $this->streetAddress, |
|
74 | + 'postalCode' => $this->postalCode, |
|
75 | + 'locality' => $this->locality, |
|
76 | + 'country' => $this->country, |
|
77 | 77 | ]; |
78 | 78 | } |
79 | 79 |
@@ -132,14 +132,14 @@ |
||
132 | 132 | public function serialize() |
133 | 133 | { |
134 | 134 | return [ |
135 | - 'phone' => $this->phone, |
|
136 | - 'email' => $this->email, |
|
137 | - 'url' => $this->url, |
|
138 | - 'urlLabel' => $this->urlLabel, |
|
139 | - 'name' => $this->name, |
|
140 | - 'description' => $this->description, |
|
141 | - 'availabilityStarts' => $this->availabilityStarts, |
|
142 | - 'availabilityEnds' => $this->availabilityEnds |
|
135 | + 'phone' => $this->phone, |
|
136 | + 'email' => $this->email, |
|
137 | + 'url' => $this->url, |
|
138 | + 'urlLabel' => $this->urlLabel, |
|
139 | + 'name' => $this->name, |
|
140 | + 'description' => $this->description, |
|
141 | + 'availabilityStarts' => $this->availabilityStarts, |
|
142 | + 'availabilityEnds' => $this->availabilityEnds |
|
143 | 143 | ]; |
144 | 144 | } |
145 | 145 |
@@ -81,11 +81,11 @@ discard block |
||
81 | 81 | public function serialize() |
82 | 82 | { |
83 | 83 | return [ |
84 | - 'type' => $this->getType(), |
|
85 | - 'startDate' => $this->startDate, |
|
86 | - 'endDate' => $this->endDate, |
|
87 | - 'timestamps' => $this->timestamps, |
|
88 | - 'openingHours' => $this->openingHours, |
|
84 | + 'type' => $this->getType(), |
|
85 | + 'startDate' => $this->startDate, |
|
86 | + 'endDate' => $this->endDate, |
|
87 | + 'timestamps' => $this->timestamps, |
|
88 | + 'openingHours' => $this->openingHours, |
|
89 | 89 | ]; |
90 | 90 | } |
91 | 91 | |
@@ -161,9 +161,9 @@ discard block |
||
161 | 161 | $jsonLd['subEvent'] = array(); |
162 | 162 | foreach ($timestamps as $timestamp) { |
163 | 163 | $jsonLd['subEvent'][] = array( |
164 | - '@type' => 'Event', |
|
165 | - 'startDate' => $timestamp->getStartDate(), |
|
166 | - 'endDate' => $timestamp->getEndDate(), |
|
164 | + '@type' => 'Event', |
|
165 | + 'startDate' => $timestamp->getStartDate(), |
|
166 | + 'endDate' => $timestamp->getEndDate(), |
|
167 | 167 | ); |
168 | 168 | } |
169 | 169 | } |
@@ -70,9 +70,9 @@ |
||
70 | 70 | public function serialize() |
71 | 71 | { |
72 | 72 | return [ |
73 | - 'id' => $this->id, |
|
74 | - 'label' => $this->label, |
|
75 | - 'domain' => $this->domain, |
|
73 | + 'id' => $this->id, |
|
74 | + 'label' => $this->label, |
|
75 | + 'domain' => $this->domain, |
|
76 | 76 | ]; |
77 | 77 | } |
78 | 78 |
@@ -23,7 +23,7 @@ |
||
23 | 23 | |
24 | 24 | $method = $this->getHandleMethod($command); |
25 | 25 | |
26 | - if (! method_exists($this, $method)) { |
|
26 | + if (!method_exists($this, $method)) { |
|
27 | 27 | return; |
28 | 28 | } |
29 | 29 |