@@ -95,11 +95,11 @@ discard block |
||
95 | 95 | ); |
96 | 96 | |
97 | 97 | return [ |
98 | - 'type' => $this->getType(), |
|
99 | - 'startDate' => $this->startDate, |
|
100 | - 'endDate' => $this->endDate, |
|
101 | - 'timestamps' => $serializedTimestamps, |
|
102 | - 'openingHours' => $this->openingHours, |
|
98 | + 'type' => $this->getType(), |
|
99 | + 'startDate' => $this->startDate, |
|
100 | + 'endDate' => $this->endDate, |
|
101 | + 'timestamps' => $serializedTimestamps, |
|
102 | + 'openingHours' => $this->openingHours, |
|
103 | 103 | ]; |
104 | 104 | } |
105 | 105 | |
@@ -181,9 +181,9 @@ discard block |
||
181 | 181 | $jsonLd['subEvent'] = array(); |
182 | 182 | foreach ($timestamps as $timestamp) { |
183 | 183 | $jsonLd['subEvent'][] = array( |
184 | - '@type' => 'Event', |
|
185 | - 'startDate' => $timestamp->getStartDate(), |
|
186 | - 'endDate' => $timestamp->getEndDate(), |
|
184 | + '@type' => 'Event', |
|
185 | + 'startDate' => $timestamp->getStartDate(), |
|
186 | + 'endDate' => $timestamp->getEndDate(), |
|
187 | 187 | ); |
188 | 188 | } |
189 | 189 | } |
@@ -481,7 +481,7 @@ |
||
481 | 481 | |
482 | 482 | $jsonLD->name->nl = $majorInfoUpdated->getTitle(); |
483 | 483 | $jsonLD->location = array( |
484 | - '@type' => 'Place', |
|
484 | + '@type' => 'Place', |
|
485 | 485 | ) + (array)$this->placeJSONLD($majorInfoUpdated->getLocation()->getCdbid()); |
486 | 486 | |
487 | 487 | // Remove old theme and event type. |
@@ -147,9 +147,9 @@ discard block |
||
147 | 147 | { |
148 | 148 | $q = $this->connection->createQueryBuilder(); |
149 | 149 | $q->select('event') |
150 | - ->from($this->tableName) |
|
151 | - ->where('place = ?') |
|
152 | - ->setParameter(0, $placeId); |
|
150 | + ->from($this->tableName) |
|
151 | + ->where('place = ?') |
|
152 | + ->setParameter(0, $placeId); |
|
153 | 153 | |
154 | 154 | $results = $q->execute(); |
155 | 155 | |
@@ -184,8 +184,8 @@ discard block |
||
184 | 184 | { |
185 | 185 | $q = $this->connection->createQueryBuilder(); |
186 | 186 | $q->delete($this->tableName) |
187 | - ->where('event = ?') |
|
188 | - ->setParameter(0, $eventId); |
|
187 | + ->where('event = ?') |
|
188 | + ->setParameter(0, $eventId); |
|
189 | 189 | |
190 | 190 | $q->execute(); |
191 | 191 | } |