@@ -8,7 +8,7 @@ |
||
8 | 8 | { |
9 | 9 | |
10 | 10 | /** |
11 | - * @param $eventLd |
|
11 | + * @param \stdClass $eventLd |
|
12 | 12 | * @return bool |
13 | 13 | */ |
14 | 14 | public function hasLabel($eventLd, String $label) |
@@ -2,8 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace CultuurNet\UDB3\Event\ReadModel\JSONLD\Specifications; |
4 | 4 | |
5 | -use ValueObjects\String\String; |
|
6 | - |
|
7 | 5 | trait Labelable |
8 | 6 | { |
9 | 7 |
@@ -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 |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | } |
58 | 58 | |
59 | 59 | /** |
60 | - * @return String|null |
|
60 | + * @return String |
|
61 | 61 | */ |
62 | 62 | public function getSubBrand() |
63 | 63 | { |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | } |
77 | 77 | |
78 | 78 | /** |
79 | - * @return String|null |
|
79 | + * @return String |
|
80 | 80 | */ |
81 | 81 | public function getTitle() |
82 | 82 | { |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | } |
96 | 96 | |
97 | 97 | /** |
98 | - * @return String|null |
|
98 | + * @return String |
|
99 | 99 | */ |
100 | 100 | public function getText() |
101 | 101 | { |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | } |
115 | 115 | |
116 | 116 | /** |
117 | - * @return String|null |
|
117 | + * @return String |
|
118 | 118 | */ |
119 | 119 | public function getCopyright() |
120 | 120 | { |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | } |
134 | 134 | |
135 | 135 | /** |
136 | - * @return String|null |
|
136 | + * @return String |
|
137 | 137 | */ |
138 | 138 | public function getKeyword() |
139 | 139 | { |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | } |
153 | 153 | |
154 | 154 | /** |
155 | - * @return String|null |
|
155 | + * @return String |
|
156 | 156 | */ |
157 | 157 | public function getArticle() |
158 | 158 | { |
@@ -268,15 +268,15 @@ |
||
268 | 268 | public function serialize() |
269 | 269 | { |
270 | 270 | $data = [ |
271 | - 'subBrand' => (string) $this->subBrand, |
|
272 | - 'plainText' => (string) $this->plainText, |
|
273 | - 'title' => (string) $this->title, |
|
274 | - 'text' => (string) $this->text, |
|
275 | - 'copyright' => (string) $this->copyright, |
|
276 | - 'keyword' => (string) $this->keyword, |
|
277 | - 'image' => (string) $this->image, |
|
278 | - 'article' => (string) $this->article, |
|
279 | - 'link' => (string) $this->link, |
|
271 | + 'subBrand' => (string)$this->subBrand, |
|
272 | + 'plainText' => (string)$this->plainText, |
|
273 | + 'title' => (string)$this->title, |
|
274 | + 'text' => (string)$this->text, |
|
275 | + 'copyright' => (string)$this->copyright, |
|
276 | + 'keyword' => (string)$this->keyword, |
|
277 | + 'image' => (string)$this->image, |
|
278 | + 'article' => (string)$this->article, |
|
279 | + 'link' => (string)$this->link, |
|
280 | 280 | ]; |
281 | 281 | |
282 | 282 | return array_filter($data, 'strlen'); |
@@ -86,7 +86,7 @@ |
||
86 | 86 | public function serialize() |
87 | 87 | { |
88 | 88 | $serialized = array( |
89 | - 'eventId' => (string) $this->eventId, |
|
89 | + 'eventId' => (string)$this->eventId, |
|
90 | 90 | 'language' => $this->language->getCode(), |
91 | 91 | 'collaborationData' => $this->collaborationData->serialize(), |
92 | 92 | ); |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace CultuurNet\UDB3\Media; |
4 | 4 | |
5 | 5 | use Broadway\EventSourcing\EventSourcedAggregateRoot; |
6 | -use Broadway\Serializer\SerializableInterface; |
|
7 | 6 | use CultuurNet\UDB3\JsonLdSerializableInterface; |
8 | 7 | use CultuurNet\UDB3\Media\Events\MediaObjectCreated; |
9 | 8 | use CultuurNet\UDB3\Media\Properties\MIMEType; |
@@ -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 |
@@ -295,7 +295,7 @@ |
||
295 | 295 | $placeLd = $document->getBody(); |
296 | 296 | |
297 | 297 | $placeLd->organizer = array( |
298 | - '@type' => 'Organizer', |
|
298 | + '@type' => 'Organizer', |
|
299 | 299 | ) + (array)$this->organizerJSONLD($organizerUpdated->getOrganizerId()); |
300 | 300 | |
301 | 301 | $this->repository->save($document->withBody($placeLd)); |
@@ -12,13 +12,11 @@ discard block |
||
12 | 12 | use CultuurNet\UDB3\EntityServiceInterface; |
13 | 13 | use CultuurNet\UDB3\Event\EventType; |
14 | 14 | use CultuurNet\UDB3\Event\ReadModel\DocumentRepositoryInterface; |
15 | -use CultuurNet\UDB3\EventHandling\DelegateEventHandlingToSpecificMethodTrait; |
|
16 | 15 | use CultuurNet\UDB3\Facility; |
17 | 16 | use CultuurNet\UDB3\Iri\IriGeneratorInterface; |
18 | 17 | use CultuurNet\UDB3\Offer\ReadModel\JSONLD\CdbXMLItemBaseImporter; |
19 | 18 | use CultuurNet\UDB3\Offer\ReadModel\JSONLD\OfferLDProjector; |
20 | 19 | use CultuurNet\UDB3\Offer\ReadModel\JSONLD\OfferUpdate; |
21 | -use CultuurNet\UDB3\Offer\ReadModel\OfferJsonDocument; |
|
22 | 20 | use CultuurNet\UDB3\Place\Events\BookingInfoUpdated; |
23 | 21 | use CultuurNet\UDB3\Place\Events\ContactPointUpdated; |
24 | 22 | use CultuurNet\UDB3\Place\Events\DescriptionUpdated; |
@@ -40,7 +38,6 @@ discard block |
||
40 | 38 | use CultuurNet\UDB3\Place\PlaceEvent; |
41 | 39 | use CultuurNet\UDB3\Place\ReadModel\JSONLD\CdbXMLImporter; |
42 | 40 | use CultuurNet\UDB3\ReadModel\JsonDocument; |
43 | -use CultuurNet\UDB3\SluggerInterface; |
|
44 | 41 | use CultuurNet\UDB3\Theme; |
45 | 42 | use Symfony\Component\Serializer\SerializerInterface; |
46 | 43 |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | $jsonLD->address = $placeCreated->getAddress()->toJsonLd(); |
161 | 161 | |
162 | 162 | $calendarJsonLD = $placeCreated->getCalendar()->toJsonLd(); |
163 | - $jsonLD = (object) array_merge((array) $jsonLD, $calendarJsonLD); |
|
163 | + $jsonLD = (object)array_merge((array)$jsonLD, $calendarJsonLD); |
|
164 | 164 | |
165 | 165 | $eventType = $placeCreated->getEventType(); |
166 | 166 | $jsonLD->terms = [ |
@@ -214,8 +214,8 @@ discard block |
||
214 | 214 | $jsonLD->address = $majorInfoUpdated->getAddress()->toJsonLd(); |
215 | 215 | |
216 | 216 | // Remove old theme and event type. |
217 | - $jsonLD->terms = array_filter($jsonLD->terms, function ($term) { |
|
218 | - return $term->domain !== EventType::DOMAIN && $term->domain !== Theme::DOMAIN; |
|
217 | + $jsonLD->terms = array_filter($jsonLD->terms, function($term) { |
|
218 | + return $term->domain !== EventType::DOMAIN && $term->domain !== Theme::DOMAIN; |
|
219 | 219 | }); |
220 | 220 | |
221 | 221 | $eventType = $majorInfoUpdated->getEventType(); |
@@ -361,7 +361,7 @@ discard block |
||
361 | 361 | // Remove all old facilities + get numeric keys. |
362 | 362 | $terms = array_values(array_filter( |
363 | 363 | $terms, |
364 | - function ($term) { |
|
364 | + function($term) { |
|
365 | 365 | return $term->domain !== Facility::DOMAIN; |
366 | 366 | } |
367 | 367 | )); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | |
14 | 14 | public function __construct($keyword) |
15 | 15 | { |
16 | - $keyword = (string) $keyword; |
|
16 | + $keyword = (string)$keyword; |
|
17 | 17 | |
18 | 18 | $this->filterQuery = new FilterQuery( |
19 | 19 | sprintf( |
@@ -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 |