@@ -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 | |
@@ -72,10 +72,10 @@ |
||
| 72 | 72 | public function serialize() |
| 73 | 73 | { |
| 74 | 74 | return [ |
| 75 | - 'phone' => $this->phones, |
|
| 76 | - 'email' => $this->emails, |
|
| 77 | - 'url' => $this->urls, |
|
| 78 | - 'type' => $this->type, |
|
| 75 | + 'phone' => $this->phones, |
|
| 76 | + 'email' => $this->emails, |
|
| 77 | + 'url' => $this->urls, |
|
| 78 | + 'type' => $this->type, |
|
| 79 | 79 | ]; |
| 80 | 80 | } |
| 81 | 81 | |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Created by PhpStorm. |
|
| 4 | - * User: nicolas |
|
| 5 | - * Date: 16/11/15 |
|
| 6 | - * Time: 14:03 |
|
| 7 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: nicolas |
|
| 5 | + * Date: 16/11/15 |
|
| 6 | + * Time: 14:03 |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace CultuurNet\UDB3\Event\Events; |
| 10 | 10 | |
@@ -1,7 +1,7 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - */ |
|
| 3 | + * @file |
|
| 4 | + */ |
|
| 5 | 5 | |
| 6 | 6 | namespace CultuurNet\UDB3\Event\ReadModel\Relations\Doctrine; |
| 7 | 7 | |
@@ -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 | |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | |
| 183 | 183 | public function removeRelations($eventId) |
| 184 | 184 | { |
| 185 | - // @todo implement this for non-drupal. |
|
| 185 | + // @todo implement this for non-drupal. |
|
| 186 | 186 | } |
| 187 | 187 | |
| 188 | 188 | /** |
@@ -1,7 +1,7 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - */ |
|
| 3 | + * @file |
|
| 4 | + */ |
|
| 5 | 5 | |
| 6 | 6 | namespace CultuurNet\UDB3\Event\ReadModel\Relations; |
| 7 | 7 | |
@@ -110,8 +110,8 @@ discard block |
||
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | /** |
| 113 | - * @param EventUpdatedFromCdbXml $eventUpdatedFromCdbXml |
|
| 114 | - */ |
|
| 113 | + * @param EventUpdatedFromCdbXml $eventUpdatedFromCdbXml |
|
| 114 | + */ |
|
| 115 | 115 | protected function applyEventUpdatedFromCdbXml(EventUpdatedFromCdbXml $eventUpdatedFromCdbXml) |
| 116 | 116 | { |
| 117 | 117 | $eventId = $eventUpdatedFromCdbXml->getEventId(); |
@@ -78,16 +78,16 @@ |
||
| 78 | 78 | $firstTimestamp = reset($uitpasCalendar->timestamps); |
| 79 | 79 | $firstTimestampDate = new \DateTime(); |
| 80 | 80 | $firstTimestampDate |
| 81 | - ->setTimestamp($firstTimestamp->date) |
|
| 82 | - ->setTime(0, 0, 0); |
|
| 81 | + ->setTimestamp($firstTimestamp->date) |
|
| 82 | + ->setTime(0, 0, 0); |
|
| 83 | 83 | $dateRange->datefrom = $firstTimestampDate->getTimestamp(); |
| 84 | 84 | |
| 85 | 85 | /** @var \CultureFeed_Uitpas_Calendar_Timestamp $lastTimestamp */ |
| 86 | 86 | $lastTimestamp = end($uitpasCalendar->timestamps); |
| 87 | 87 | $lastTimestampDate = new \DateTime(); |
| 88 | 88 | $lastTimestampDate |
| 89 | - ->setTimestamp($lastTimestamp->date) |
|
| 90 | - ->setTime(24, 59, 59); |
|
| 89 | + ->setTimestamp($lastTimestamp->date) |
|
| 90 | + ->setTime(24, 59, 59); |
|
| 91 | 91 | $dateRange->dateto = $lastTimestampDate->getTimestamp(); |
| 92 | 92 | } else { |
| 93 | 93 | // If there is no useful calendar info, start from the time the |