@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | public function editDescription(Id $id, Description $description) |
70 | 70 | { |
71 | 71 | /** @var EventVariation $variation */ |
72 | - $variation = $this->eventVariationRepository->load((string) $id); |
|
72 | + $variation = $this->eventVariationRepository->load((string)$id); |
|
73 | 73 | |
74 | 74 | $variation->editDescription($description); |
75 | 75 | |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | public function deleteEventVariation(Id $id) |
83 | 83 | { |
84 | 84 | /** @var EventVariation $variation */ |
85 | - $variation = $this->eventVariationRepository->load((string) $id); |
|
85 | + $variation = $this->eventVariationRepository->load((string)$id); |
|
86 | 86 | |
87 | 87 | $variation->markDeleted(); |
88 | 88 |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | private function guardNotDeleted() |
123 | 123 | { |
124 | 124 | if ($this->isDeleted()) { |
125 | - throw new AggregateDeletedException((string) $this->id); |
|
125 | + throw new AggregateDeletedException((string)$this->id); |
|
126 | 126 | } |
127 | 127 | } |
128 | 128 | |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | */ |
149 | 149 | public function getAggregateRootId() |
150 | 150 | { |
151 | - return (string) $this->id; |
|
151 | + return (string)$this->id; |
|
152 | 152 | } |
153 | 153 | |
154 | 154 | /** |
@@ -39,7 +39,7 @@ |
||
39 | 39 | public function serialize() |
40 | 40 | { |
41 | 41 | return parent::serialize() + array( |
42 | - 'description' => (string) $this->description, |
|
42 | + 'description' => (string)$this->description, |
|
43 | 43 | ); |
44 | 44 | } |
45 | 45 |
@@ -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 |
@@ -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 |
@@ -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 | ); |
@@ -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 |
@@ -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 | ); |