@@ -93,10 +93,10 @@ |
||
| 93 | 93 | public function serialize() |
| 94 | 94 | { |
| 95 | 95 | return parent::serialize() + array( |
| 96 | - 'event_url' => (string) $this->getEventUrl(), |
|
| 97 | - 'owner_id' => (string) $this->getOwnerId(), |
|
| 98 | - 'purpose' => (string) $this->getPurpose(), |
|
| 99 | - 'description' => (string) $this->getDescription() |
|
| 96 | + 'event_url' => (string)$this->getEventUrl(), |
|
| 97 | + 'owner_id' => (string)$this->getOwnerId(), |
|
| 98 | + 'purpose' => (string)$this->getPurpose(), |
|
| 99 | + 'description' => (string)$this->getDescription() |
|
| 100 | 100 | ); |
| 101 | 101 | } |
| 102 | 102 | |
@@ -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 | |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | public function serialize() |
| 38 | 38 | { |
| 39 | 39 | return array( |
| 40 | - 'id' => (string) $this->getId(), |
|
| 40 | + 'id' => (string)$this->getId(), |
|
| 41 | 41 | ); |
| 42 | 42 | } |
| 43 | 43 | |
@@ -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 | |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | $variationLD = $variation->getBody(); |
| 63 | 63 | $language = 'nl'; |
| 64 | 64 | |
| 65 | - $variationLD->description->$language = (string) $descriptionEdited->getDescription(); |
|
| 65 | + $variationLD->description->$language = (string)$descriptionEdited->getDescription(); |
|
| 66 | 66 | $this->repository->save($variation->withBody($variationLD)); |
| 67 | 67 | |
| 68 | 68 | } |
@@ -48,10 +48,10 @@ |
||
| 48 | 48 | $this->connection->insert( |
| 49 | 49 | $this->connection->quoteIdentifier($this->tableName), |
| 50 | 50 | [ |
| 51 | - 'id' => (string) $variationId, |
|
| 52 | - 'event' => (string) $eventUrl, |
|
| 53 | - 'owner' => (string) $ownerId, |
|
| 54 | - 'purpose' => (string) $purpose, |
|
| 51 | + 'id' => (string)$variationId, |
|
| 52 | + 'event' => (string)$eventUrl, |
|
| 53 | + 'owner' => (string)$ownerId, |
|
| 54 | + 'purpose' => (string)$purpose, |
|
| 55 | 55 | 'inserted' => time(), |
| 56 | 56 | ] |
| 57 | 57 | ); |
@@ -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 | |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Created by PhpStorm. |
|
| 4 | - * User: nicolas |
|
| 5 | - * Date: 06/10/15 |
|
| 6 | - * Time: 10:19 |
|
| 7 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: nicolas |
|
| 5 | + * Date: 06/10/15 |
|
| 6 | + * Time: 10:19 |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace CultuurNet\UDB3; |
| 10 | 10 | |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | * @param Title $title |
| 23 | 23 | * @param EventType $eventType |
| 24 | 24 | * @param Address $address |
| 25 | - * @param CalendarBase $calendar |
|
| 25 | + * @param CalendarInterface $calendar |
|
| 26 | 26 | * @param Theme|null $theme |
| 27 | 27 | * |
| 28 | 28 | * @return string $eventId |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | * @param Title $title |
| 44 | 44 | * @param EventType $eventType |
| 45 | 45 | * @param Address $address |
| 46 | - * @param CalendarBase $calendar |
|
| 46 | + * @param CalendarInterface $calendar |
|
| 47 | 47 | * @param Theme/null $theme |
| 48 | 48 | */ |
| 49 | 49 | public function updateMajorInfo($id, Title $title, EventType $eventType, Address $address, CalendarInterface $calendar, $theme = null); |
@@ -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 | |
@@ -7,12 +7,8 @@ |
||
| 7 | 7 | |
| 8 | 8 | use CultuurNet\UDB3\CalendarInterface; |
| 9 | 9 | use CultuurNet\UDB3\ContactPoint; |
| 10 | -use CultuurNet\UDB3\EventNotFoundException; |
|
| 11 | -use CultuurNet\UDB3\Label; |
|
| 12 | -use CultuurNet\UDB3\Language; |
|
| 13 | 10 | use CultuurNet\UDB3\Location; |
| 14 | 11 | use CultuurNet\UDB3\Media\Image; |
| 15 | -use CultuurNet\UDB3\Media\MediaObject; |
|
| 16 | 12 | use CultuurNet\UDB3\Title; |
| 17 | 13 | use ValueObjects\String\String; |
| 18 | 14 | |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | /** |
| 17 | 17 | * @param string $brand |
| 18 | 18 | * @param string $title |
| 19 | - * @param string|null $subtitle |
|
| 19 | + * @param string|null $subTitle |
|
| 20 | 20 | * @param string|null $footer |
| 21 | 21 | * @param string|null $publisher |
| 22 | 22 | * @param EventInfoServiceInterface|null $uitpas |
@@ -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 | |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 57 | 57 | 'CultuurNet\UDB3\UsedKeywordsMemory\Created', |
| 58 | - function (array $serializedObject) { |
|
| 58 | + function(array $serializedObject) { |
|
| 59 | 59 | $serializedObject['class'] = UsedLabelsMemoryCreated::class; |
| 60 | 60 | |
| 61 | 61 | return $serializedObject; |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | |
| 65 | 65 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 66 | 66 | 'CultuurNet\UDB3\UsedKeywordsMemory\KeywordUsed', |
| 67 | - function (array $serializedObject) { |
|
| 67 | + function(array $serializedObject) { |
|
| 68 | 68 | $serializedObject['class'] = LabelUsed::class; |
| 69 | 69 | |
| 70 | 70 | $serializedObject = self::replaceKeywordWithLabel($serializedObject); |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | |
| 80 | 80 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 81 | 81 | 'CultuurNet\UDB3\Event\TitleTranslated', |
| 82 | - function (array $serializedObject) { |
|
| 82 | + function(array $serializedObject) { |
|
| 83 | 83 | $serializedObject['class'] = TitleTranslated::class; |
| 84 | 84 | |
| 85 | 85 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | |
| 91 | 91 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 92 | 92 | 'CultuurNet\UDB3\Event\DescriptionTranslated', |
| 93 | - function (array $serializedObject) { |
|
| 93 | + function(array $serializedObject) { |
|
| 94 | 94 | $serializedObject['class'] = DescriptionTranslated::class; |
| 95 | 95 | |
| 96 | 96 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | |
| 106 | 106 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 107 | 107 | 'CultuurNet\UDB3\Event\Events\EventWasLabelled', |
| 108 | - function (array $serializedObject) { |
|
| 108 | + function(array $serializedObject) { |
|
| 109 | 109 | $serializedObject['class'] = LabelAdded::class; |
| 110 | 110 | |
| 111 | 111 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | |
| 117 | 117 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 118 | 118 | 'CultuurNet\UDB3\Event\EventWasTagged', |
| 119 | - function (array $serializedObject) { |
|
| 119 | + function(array $serializedObject) { |
|
| 120 | 120 | $serializedObject['class'] = LabelAdded::class; |
| 121 | 121 | |
| 122 | 122 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | |
| 130 | 130 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 131 | 131 | 'CultuurNet\UDB3\Event\TagErased', |
| 132 | - function (array $serializedObject) { |
|
| 132 | + function(array $serializedObject) { |
|
| 133 | 133 | $serializedObject['class'] = LabelDeleted::class; |
| 134 | 134 | |
| 135 | 135 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | |
| 143 | 143 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 144 | 144 | 'CultuurNet\UDB3\Event\Events\Unlabelled', |
| 145 | - function (array $serializedObject) { |
|
| 145 | + function(array $serializedObject) { |
|
| 146 | 146 | $serializedObject['class'] = LabelDeleted::class; |
| 147 | 147 | |
| 148 | 148 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | |
| 154 | 154 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 155 | 155 | 'CultuurNet\UDB3\Event\Events\LabelsApplied', |
| 156 | - function (array $serializedObject) { |
|
| 156 | + function(array $serializedObject) { |
|
| 157 | 157 | $serializedObject['class'] = LabelsMerged::class; |
| 158 | 158 | |
| 159 | 159 | $keywordsString = $serializedObject['payload']['keywords_string']; |
@@ -175,9 +175,9 @@ discard block |
||
| 175 | 175 | } |
| 176 | 176 | |
| 177 | 177 | $labels = array_map( |
| 178 | - function (Label $label) { |
|
| 178 | + function(Label $label) { |
|
| 179 | 179 | return [ |
| 180 | - 'text' => (string) $label, |
|
| 180 | + 'text' => (string)$label, |
|
| 181 | 181 | 'visible' => $label->isVisible(), |
| 182 | 182 | ]; |
| 183 | 183 | }, |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | |
| 198 | 198 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 199 | 199 | 'CultuurNet\UDB3\Event\EventImportedFromUDB2', |
| 200 | - function (array $serializedObject) { |
|
| 200 | + function(array $serializedObject) { |
|
| 201 | 201 | $serializedObject['class'] = EventImportedFromUDB2::class; |
| 202 | 202 | |
| 203 | 203 | return $serializedObject; |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | |
| 211 | 211 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 212 | 212 | BookingInfoUpdated::class, |
| 213 | - function (array $serializedObject) { |
|
| 213 | + function(array $serializedObject) { |
|
| 214 | 214 | |
| 215 | 215 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
| 216 | 216 | |
@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | |
| 225 | 225 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 226 | 226 | TypicalAgeRangeDeleted::class, |
| 227 | - function (array $serializedObject) { |
|
| 227 | + function(array $serializedObject) { |
|
| 228 | 228 | |
| 229 | 229 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
| 230 | 230 | |
@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | |
| 235 | 235 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 236 | 236 | TypicalAgeRangeUpdated::class, |
| 237 | - function (array $serializedObject) { |
|
| 237 | + function(array $serializedObject) { |
|
| 238 | 238 | |
| 239 | 239 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
| 240 | 240 | |
@@ -248,7 +248,7 @@ discard block |
||
| 248 | 248 | |
| 249 | 249 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 250 | 250 | ContactPointUpdated::class, |
| 251 | - function (array $serializedObject) { |
|
| 251 | + function(array $serializedObject) { |
|
| 252 | 252 | |
| 253 | 253 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
| 254 | 254 | |
@@ -262,7 +262,7 @@ discard block |
||
| 262 | 262 | |
| 263 | 263 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 264 | 264 | MajorInfoUpdated::class, |
| 265 | - function (array $serializedObject) { |
|
| 265 | + function(array $serializedObject) { |
|
| 266 | 266 | |
| 267 | 267 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
| 268 | 268 | |
@@ -276,7 +276,7 @@ discard block |
||
| 276 | 276 | |
| 277 | 277 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 278 | 278 | OrganizerUpdated::class, |
| 279 | - function (array $serializedObject) { |
|
| 279 | + function(array $serializedObject) { |
|
| 280 | 280 | |
| 281 | 281 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
| 282 | 282 | |
@@ -286,7 +286,7 @@ discard block |
||
| 286 | 286 | |
| 287 | 287 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
| 288 | 288 | OrganizerDeleted::class, |
| 289 | - function (array $serializedObject) { |
|
| 289 | + function(array $serializedObject) { |
|
| 290 | 290 | |
| 291 | 291 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
| 292 | 292 | |