@@ -59,13 +59,13 @@ |
||
59 | 59 | $mainLanguage = isset($body->mainLanguage) ? $body->mainLanguage : 'nl'; |
60 | 60 | |
61 | 61 | if (is_string($body->name)) { |
62 | - $body->name = (object) [ |
|
62 | + $body->name = (object)[ |
|
63 | 63 | $mainLanguage => $body->name, |
64 | 64 | ]; |
65 | 65 | } |
66 | 66 | |
67 | 67 | if (isset($body->address->streetAddress)) { |
68 | - $body->address = (object) [ |
|
68 | + $body->address = (object)[ |
|
69 | 69 | $mainLanguage => $body->address, |
70 | 70 | ]; |
71 | 71 | } |
@@ -62,20 +62,20 @@ |
||
62 | 62 | $mainLanguage = isset($body->mainLanguage) ? $body->mainLanguage : 'nl'; |
63 | 63 | |
64 | 64 | if (isset($body->address->streetAddress)) { |
65 | - $body->address = (object) [ |
|
65 | + $body->address = (object)[ |
|
66 | 66 | $mainLanguage => $body->address, |
67 | 67 | ]; |
68 | 68 | } |
69 | 69 | |
70 | 70 | if (isset($body->bookingInfo->urlLabel) && is_string($body->bookingInfo->urlLabel)) { |
71 | - $body->bookingInfo->urlLabel = (object) [ |
|
71 | + $body->bookingInfo->urlLabel = (object)[ |
|
72 | 72 | $mainLanguage => $body->bookingInfo->urlLabel, |
73 | 73 | ]; |
74 | 74 | } |
75 | 75 | |
76 | 76 | if (isset($body->priceInfo) && is_array($body->priceInfo) && is_string($body->priceInfo[0]->name)) { |
77 | 77 | foreach ($body->priceInfo as $priceInfo) { |
78 | - $priceInfo->name = (object) [ |
|
78 | + $priceInfo->name = (object)[ |
|
79 | 79 | $mainLanguage => $priceInfo->name, |
80 | 80 | ]; |
81 | 81 | } |
@@ -61,14 +61,14 @@ |
||
61 | 61 | $mainLanguage = isset($body->mainLanguage) ? $body->mainLanguage : 'nl'; |
62 | 62 | |
63 | 63 | if (isset($body->bookingInfo->urlLabel) && is_string($body->bookingInfo->urlLabel)) { |
64 | - $body->bookingInfo->urlLabel = (object) [ |
|
64 | + $body->bookingInfo->urlLabel = (object)[ |
|
65 | 65 | $mainLanguage => $body->bookingInfo->urlLabel, |
66 | 66 | ]; |
67 | 67 | } |
68 | 68 | |
69 | 69 | if (isset($body->priceInfo) && is_array($body->priceInfo) && is_string($body->priceInfo[0]->name)) { |
70 | 70 | foreach ($body->priceInfo as $priceInfo) { |
71 | - $priceInfo->name = (object) [ |
|
71 | + $priceInfo->name = (object)[ |
|
72 | 72 | $mainLanguage => $priceInfo->name, |
73 | 73 | ]; |
74 | 74 | } |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | $sameFacilities = array_uintersect( |
217 | 217 | $facilities1, |
218 | 218 | $facilities2, |
219 | - function (Facility $facility1, Facility $facility2) { |
|
219 | + function(Facility $facility1, Facility $facility2) { |
|
220 | 220 | return strcmp($facility1->getId(), $facility2->getId()); |
221 | 221 | } |
222 | 222 | ); |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | // Convert the imported labels to label collection. |
268 | 268 | $importLabelsCollection = new LabelCollection( |
269 | 269 | array_map( |
270 | - function (\CultuurNet\UDB3\Model\ValueObject\Taxonomy\Label\Label $label) { |
|
270 | + function(\CultuurNet\UDB3\Model\ValueObject\Taxonomy\Label\Label $label) { |
|
271 | 271 | return new Label( |
272 | 272 | $label->getName()->toString(), |
273 | 273 | $label->isVisible() |
@@ -291,7 +291,7 @@ discard block |
||
291 | 291 | foreach ($addedLabels->asArray() as $addedLabel) { |
292 | 292 | $importLabels = $importLabels->with( |
293 | 293 | new \CultuurNet\UDB3\Model\ValueObject\Taxonomy\Label\Label( |
294 | - new LabelName((string) $addedLabel), |
|
294 | + new LabelName((string)$addedLabel), |
|
295 | 295 | $addedLabel->isVisible() |
296 | 296 | ) |
297 | 297 | ); |
@@ -675,7 +675,7 @@ discard block |
||
675 | 675 | $importImages = $imageCollection->toArray(); |
676 | 676 | $currentImages = $currentImageCollection->toArray(); |
677 | 677 | |
678 | - $compareImages = function (Image $a, Image $b) { |
|
678 | + $compareImages = function(Image $a, Image $b) { |
|
679 | 679 | $idA = $a->getMediaObjectId()->toNative(); |
680 | 680 | $idB = $b->getMediaObjectId()->toNative(); |
681 | 681 | return strcmp($idA, $idB); |
@@ -822,7 +822,7 @@ discard block |
||
822 | 822 | if ($this->rejectedReason && $reason->sameValueAs($this->rejectedReason)) { |
823 | 823 | return true; // nothing left to do if the offer has already been rejected for the same reason |
824 | 824 | } else { |
825 | - throw new Exception('The offer has already been rejected for another reason: ' . $this->rejectedReason); |
|
825 | + throw new Exception('The offer has already been rejected for another reason: '.$this->rejectedReason); |
|
826 | 826 | } |
827 | 827 | } |
828 | 828 | |
@@ -997,7 +997,7 @@ discard block |
||
997 | 997 | $dutchImagesList = $imagesEvent->getImages()->toArray(); |
998 | 998 | $translatedImagesList = array_filter( |
999 | 999 | $this->images->toArray(), |
1000 | - function (Image $image) { |
|
1000 | + function(Image $image) { |
|
1001 | 1001 | return $image->getLanguage()->getCode() !== 'nl'; |
1002 | 1002 | } |
1003 | 1003 | ); |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | public function getByUuid(UUID $uuid) |
55 | 55 | { |
56 | 56 | $aliases = $this->getAliases(); |
57 | - $whereId = SchemaConfigurator::UUID_COLUMN . ' = ?'; |
|
57 | + $whereId = SchemaConfigurator::UUID_COLUMN.' = ?'; |
|
58 | 58 | |
59 | 59 | $queryBuilder = $this->createQueryBuilder()->select($aliases) |
60 | 60 | ->from($this->getTableName()->toNative()) |
@@ -215,15 +215,15 @@ discard block |
||
215 | 215 | private function createUserLabelsSubQuery(Query $query) |
216 | 216 | { |
217 | 217 | return $this->createQueryBuilder() |
218 | - ->select('DISTINCT ' . LabelRolesSchemaConfigurator::LABEL_ID_COLUMN) |
|
218 | + ->select('DISTINCT '.LabelRolesSchemaConfigurator::LABEL_ID_COLUMN) |
|
219 | 219 | ->from($this->userRolesTableName->toNative(), 'ur') |
220 | 220 | ->innerJoin( |
221 | 221 | 'ur', |
222 | 222 | $this->labelRolesTableName->toNative(), |
223 | 223 | 'lr', |
224 | - 'ur.' . PermissionsSchemaConfigurator::ROLE_ID_COLUMN . ' = lr.' . LabelRolesSchemaConfigurator::ROLE_ID_COLUMN |
|
224 | + 'ur.'.PermissionsSchemaConfigurator::ROLE_ID_COLUMN.' = lr.'.LabelRolesSchemaConfigurator::ROLE_ID_COLUMN |
|
225 | 225 | ) |
226 | - ->where('ur.' . PermissionsSchemaConfigurator::USER_ID_COLUMN . '= :' . PermissionsSchemaConfigurator::USER_ID_COLUMN); |
|
226 | + ->where('ur.'.PermissionsSchemaConfigurator::USER_ID_COLUMN.'= :'.PermissionsSchemaConfigurator::USER_ID_COLUMN); |
|
227 | 227 | } |
228 | 228 | |
229 | 229 | /** |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | { |
250 | 250 | return $queryBuilder->expr()->like( |
251 | 251 | SchemaConfigurator::NAME_COLUMN, |
252 | - ':' . SchemaConfigurator::NAME_COLUMN |
|
252 | + ':'.SchemaConfigurator::NAME_COLUMN |
|
253 | 253 | ); |
254 | 254 | } |
255 | 255 | |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | */ |
260 | 260 | private function createLikeParameter(Query $query) |
261 | 261 | { |
262 | - return '%' . $query->getValue()->toNative() . '%'; |
|
262 | + return '%'.$query->getValue()->toNative().'%'; |
|
263 | 263 | } |
264 | 264 | |
265 | 265 | /** |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | public function toCdbCalendar(CalendarInterface $calendar) |
41 | 41 | { |
42 | 42 | $weekScheme = $this->getWeekScheme($calendar); |
43 | - $calendarType = (string) $calendar->getType(); |
|
43 | + $calendarType = (string)$calendar->getType(); |
|
44 | 44 | |
45 | 45 | switch ($calendarType) { |
46 | 46 | case CalendarType::MULTIPLE: |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | */ |
100 | 100 | private function countTimestamps(CultureFeed_Cdb_Data_Calendar_TimestampList $timestamps) |
101 | 101 | { |
102 | - $numberOfTimestamps = iterator_count($timestamps); |
|
102 | + $numberOfTimestamps = iterator_count($timestamps); |
|
103 | 103 | $timestamps->rewind(); |
104 | 104 | |
105 | 105 | return $numberOfTimestamps; |
@@ -133,12 +133,12 @@ discard block |
||
133 | 133 | foreach ($openingHours as $openingHour) { |
134 | 134 | // In CDB2 every day needs to be a seperate entry. |
135 | 135 | if (is_array($openingHour)) { |
136 | - $openingHour = (object) $openingHour; |
|
136 | + $openingHour = (object)$openingHour; |
|
137 | 137 | } |
138 | 138 | foreach ($openingHour->getDayOfWeekCollection()->getDaysOfWeek() as $day) { |
139 | 139 | $openingTimesPerDay[$day->toNative()][] = new CultureFeed_Cdb_Data_Calendar_OpeningTime( |
140 | - $openingHour->getOpens()->toNativeString() . ':00', |
|
141 | - $openingHour->getCloses()->toNativeString() . ':00' |
|
140 | + $openingHour->getOpens()->toNativeString().':00', |
|
141 | + $openingHour->getCloses()->toNativeString().':00' |
|
142 | 142 | ); |
143 | 143 | } |
144 | 144 | } |
@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | } else { |
222 | 222 | $days = iterator_to_array($period->getDatePeriod('1 DAY')); |
223 | 223 | $fillerTimestamps = array_map( |
224 | - function (DateTimeInterface $dateTime) use ($index) { |
|
224 | + function(DateTimeInterface $dateTime) use ($index) { |
|
225 | 225 | return new CultureFeed_Cdb_Data_Calendar_Timestamp( |
226 | 226 | $dateTime->format('Y-m-d'), |
227 | 227 | $this->createIndexedTimeString($index) |
@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | |
234 | 234 | $newCalendar = array_reduce( |
235 | 235 | array_merge([$startTimestamp], $fillerTimestamps, [$endTimestamp]), |
236 | - function (CultureFeed_Cdb_Data_Calendar_TimestampList $calendar, $timestamp) { |
|
236 | + function(CultureFeed_Cdb_Data_Calendar_TimestampList $calendar, $timestamp) { |
|
237 | 237 | $calendar->add($timestamp); |
238 | 238 | return $calendar; |
239 | 239 | }, |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | } |
257 | 257 | |
258 | 258 | $time = is_int($index) |
259 | - ? $timestamp->format('H:i') . ':' . str_pad((string) $index, 2, '0', STR_PAD_LEFT) |
|
259 | + ? $timestamp->format('H:i').':'.str_pad((string)$index, 2, '0', STR_PAD_LEFT) |
|
260 | 260 | : $timestamp->format('H:i:s'); |
261 | 261 | |
262 | 262 | return $time; |
@@ -268,7 +268,7 @@ discard block |
||
268 | 268 | */ |
269 | 269 | private function createIndexedTimeString($index) |
270 | 270 | { |
271 | - return '00:00:' . str_pad((string) $index, 2, '0', STR_PAD_LEFT); |
|
271 | + return '00:00:'.str_pad((string)$index, 2, '0', STR_PAD_LEFT); |
|
272 | 272 | } |
273 | 273 | |
274 | 274 | /** |
@@ -237,7 +237,7 @@ |
||
237 | 237 | } |
238 | 238 | |
239 | 239 | /** |
240 | - * @param $string |
|
240 | + * @param string|null $string |
|
241 | 241 | * @return null|string |
242 | 242 | */ |
243 | 243 | private function castEmptyStringToNull($string) |
@@ -116,9 +116,9 @@ |
||
116 | 116 | { |
117 | 117 | $serialized = array_filter( |
118 | 118 | [ |
119 | - 'phone' => $this->phone, |
|
120 | - 'email' => $this->email, |
|
121 | - 'url' => $this->url, |
|
119 | + 'phone' => $this->phone, |
|
120 | + 'email' => $this->email, |
|
121 | + 'url' => $this->url, |
|
122 | 122 | ] |
123 | 123 | ); |
124 | 124 |
@@ -65,21 +65,21 @@ discard block |
||
65 | 65 | |
66 | 66 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
67 | 67 | 'CultuurNet\UDB3\Event\Events\EventCreated', |
68 | - function (array $serializedObject) { |
|
68 | + function(array $serializedObject) { |
|
69 | 69 | return self::addDefaultMainLanguage($serializedObject); |
70 | 70 | } |
71 | 71 | ); |
72 | 72 | |
73 | 73 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
74 | 74 | 'CultuurNet\UDB3\Place\Events\PlaceCreated', |
75 | - function (array $serializedObject) { |
|
75 | + function(array $serializedObject) { |
|
76 | 76 | return self::addDefaultMainLanguage($serializedObject); |
77 | 77 | } |
78 | 78 | ); |
79 | 79 | |
80 | 80 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
81 | 81 | 'CultuurNet\UDB3\Organizer\Events\OrganizerCreatedWithUniqueWebsite', |
82 | - function (array $serializedObject) { |
|
82 | + function(array $serializedObject) { |
|
83 | 83 | return self::addDefaultMainLanguage($serializedObject); |
84 | 84 | } |
85 | 85 | ); |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | |
91 | 91 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
92 | 92 | 'CultuurNet\UDB3\Event\TitleTranslated', |
93 | - function (array $serializedObject) { |
|
93 | + function(array $serializedObject) { |
|
94 | 94 | $serializedObject['class'] = TitleTranslated::class; |
95 | 95 | |
96 | 96 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | |
102 | 102 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
103 | 103 | 'CultuurNet\UDB3\Event\DescriptionTranslated', |
104 | - function (array $serializedObject) { |
|
104 | + function(array $serializedObject) { |
|
105 | 105 | $serializedObject['class'] = DescriptionTranslated::class; |
106 | 106 | |
107 | 107 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -116,49 +116,49 @@ discard block |
||
116 | 116 | |
117 | 117 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
118 | 118 | 'CultuurNet\UDB3\Label\Events\MadeInvisible', |
119 | - function (array $serializedObject) use ($labelRepository) { |
|
119 | + function(array $serializedObject) use ($labelRepository) { |
|
120 | 120 | return self::addLabelName($serializedObject, $labelRepository); |
121 | 121 | } |
122 | 122 | ); |
123 | 123 | |
124 | 124 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
125 | 125 | 'CultuurNet\UDB3\Label\Events\MadeVisible', |
126 | - function (array $serializedObject) use ($labelRepository) { |
|
126 | + function(array $serializedObject) use ($labelRepository) { |
|
127 | 127 | return self::addLabelName($serializedObject, $labelRepository); |
128 | 128 | } |
129 | 129 | ); |
130 | 130 | |
131 | 131 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
132 | 132 | 'CultuurNet\UDB3\Label\Events\MadePrivate', |
133 | - function (array $serializedObject) use ($labelRepository) { |
|
133 | + function(array $serializedObject) use ($labelRepository) { |
|
134 | 134 | return self::addLabelName($serializedObject, $labelRepository); |
135 | 135 | } |
136 | 136 | ); |
137 | 137 | |
138 | 138 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
139 | 139 | 'CultuurNet\UDB3\Label\Events\MadePublic', |
140 | - function (array $serializedObject) use ($labelRepository) { |
|
140 | + function(array $serializedObject) use ($labelRepository) { |
|
141 | 141 | return self::addLabelName($serializedObject, $labelRepository); |
142 | 142 | } |
143 | 143 | ); |
144 | 144 | |
145 | 145 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
146 | 146 | 'CultuurNet\UDB3\Organizer\Events\LabelAdded', |
147 | - function (array $serializedObject) use ($labelRepository) { |
|
147 | + function(array $serializedObject) use ($labelRepository) { |
|
148 | 148 | return self::fixOrganizerLabelEvent($serializedObject, $labelRepository); |
149 | 149 | } |
150 | 150 | ); |
151 | 151 | |
152 | 152 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
153 | 153 | 'CultuurNet\UDB3\Organizer\Events\LabelRemoved', |
154 | - function (array $serializedObject) use ($labelRepository) { |
|
154 | + function(array $serializedObject) use ($labelRepository) { |
|
155 | 155 | return self::fixOrganizerLabelEvent($serializedObject, $labelRepository); |
156 | 156 | } |
157 | 157 | ); |
158 | 158 | |
159 | 159 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
160 | 160 | 'CultuurNet\UDB3\Event\Events\EventWasLabelled', |
161 | - function (array $serializedObject) { |
|
161 | + function(array $serializedObject) { |
|
162 | 162 | $serializedObject['class'] = LabelAdded::class; |
163 | 163 | |
164 | 164 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | |
170 | 170 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
171 | 171 | 'CultuurNet\UDB3\Event\EventWasTagged', |
172 | - function (array $serializedObject) { |
|
172 | + function(array $serializedObject) { |
|
173 | 173 | $serializedObject['class'] = LabelAdded::class; |
174 | 174 | |
175 | 175 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | |
183 | 183 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
184 | 184 | 'CultuurNet\UDB3\Event\TagErased', |
185 | - function (array $serializedObject) { |
|
185 | + function(array $serializedObject) { |
|
186 | 186 | $serializedObject['class'] = LabelRemoved::class; |
187 | 187 | |
188 | 188 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | |
196 | 196 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
197 | 197 | 'CultuurNet\UDB3\Event\Events\Unlabelled', |
198 | - function (array $serializedObject) { |
|
198 | + function(array $serializedObject) { |
|
199 | 199 | $serializedObject['class'] = LabelRemoved::class; |
200 | 200 | |
201 | 201 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | |
211 | 211 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
212 | 212 | 'CultuurNet\UDB3\Event\EventImportedFromUDB2', |
213 | - function (array $serializedObject) { |
|
213 | + function(array $serializedObject) { |
|
214 | 214 | $serializedObject['class'] = EventImportedFromUDB2::class; |
215 | 215 | |
216 | 216 | return $serializedObject; |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | */ |
223 | 223 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
224 | 224 | 'CultuurNet\UDB3\Place\Events\FacilitiesUpdated', |
225 | - function (array $serializedObject) { |
|
225 | + function(array $serializedObject) { |
|
226 | 226 | $serializedObject = self::replacePlaceIdWithItemId($serializedObject); |
227 | 227 | |
228 | 228 | return $serializedObject; |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | */ |
235 | 235 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
236 | 236 | 'CultuurNet\UDB3\Place\Events\GeoCoordinatesUpdated', |
237 | - function (array $serializedObject) { |
|
237 | + function(array $serializedObject) { |
|
238 | 238 | $serializedObject = self::replacePlaceIdWithItemId($serializedObject); |
239 | 239 | |
240 | 240 | return $serializedObject; |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | /** |
245 | 245 | * BOOKING INFO EVENT |
246 | 246 | */ |
247 | - $manipulateAvailability = function (array $serializedBookingInfo, $propertyName) { |
|
247 | + $manipulateAvailability = function(array $serializedBookingInfo, $propertyName) { |
|
248 | 248 | if (!isset($serializedBookingInfo[$propertyName]) || empty($serializedBookingInfo[$propertyName])) { |
249 | 249 | $serializedBookingInfo[$propertyName] = null; |
250 | 250 | return $serializedBookingInfo; |
@@ -274,7 +274,7 @@ discard block |
||
274 | 274 | return $serializedBookingInfo; |
275 | 275 | }; |
276 | 276 | |
277 | - $manipulateUrlLabel = function (array $serializedBookingInfo) { |
|
277 | + $manipulateUrlLabel = function(array $serializedBookingInfo) { |
|
278 | 278 | if (!isset($serializedBookingInfo['urlLabel'])) { |
279 | 279 | return $serializedBookingInfo; |
280 | 280 | } |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | return $serializedBookingInfo; |
301 | 301 | }; |
302 | 302 | |
303 | - $manipulateBookingInfoEvent = function ( |
|
303 | + $manipulateBookingInfoEvent = function( |
|
304 | 304 | array $serializedEvent |
305 | 305 | ) use ( |
306 | 306 | $manipulateAvailability, |
@@ -345,7 +345,7 @@ discard block |
||
345 | 345 | foreach ($refactoredEventEvents as $refactoredEventEvent) { |
346 | 346 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
347 | 347 | $refactoredEventEvent, |
348 | - function (array $serializedObject) { |
|
348 | + function(array $serializedObject) { |
|
349 | 349 | $serializedObject = self::replaceEventIdWithItemId($serializedObject); |
350 | 350 | return $serializedObject; |
351 | 351 | } |
@@ -368,7 +368,7 @@ discard block |
||
368 | 368 | foreach ($refactoredPlaceEvents as $refactoredPlaceEvent) { |
369 | 369 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
370 | 370 | $refactoredPlaceEvent, |
371 | - function (array $serializedObject) { |
|
371 | + function(array $serializedObject) { |
|
372 | 372 | $serializedObject = self::replacePlaceIdWithItemId($serializedObject); |
373 | 373 | return $serializedObject; |
374 | 374 | } |
@@ -386,11 +386,11 @@ discard block |
||
386 | 386 | foreach ($priceInfoEvents as $priceInfoEvent) { |
387 | 387 | $payloadManipulatingSerializer->manipulateEventsOfClass( |
388 | 388 | $priceInfoEvent, |
389 | - function (array $serializedObject) { |
|
389 | + function(array $serializedObject) { |
|
390 | 390 | $payload = &$serializedObject['payload']; |
391 | 391 | $priceInfo = &$payload['price_info']; |
392 | 392 | $tariffs = array_map( |
393 | - function (array $tariff) { |
|
393 | + function(array $tariff) { |
|
394 | 394 | $name = $tariff['name']; |
395 | 395 | if (is_string($name)) { |
396 | 396 | $name = ['nl' => $name]; |
@@ -42,7 +42,7 @@ |
||
42 | 42 | $this->connection->exec($sql); |
43 | 43 | |
44 | 44 | if ($platform instanceof SqlitePlatform) { |
45 | - $sql = 'UPDATE SQLITE_SEQUENCE SET SEQ=0 WHERE NAME=' . $this->connection->quoteIdentifier($this->tableName); |
|
45 | + $sql = 'UPDATE SQLITE_SEQUENCE SET SEQ=0 WHERE NAME='.$this->connection->quoteIdentifier($this->tableName); |
|
46 | 46 | $this->connection->exec($sql); |
47 | 47 | } |
48 | 48 | } |