@@ -88,7 +88,7 @@ |
||
88 | 88 | ) |
89 | 89 | ); |
90 | 90 | |
91 | - $message = new DomainMessage( |
|
91 | + $message = new DomainMessage( |
|
92 | 92 | $this->id ?? UUID::generateAsString(), |
93 | 93 | $this->playhead ?? 1, |
94 | 94 | $finalMetaData, |
@@ -90,8 +90,8 @@ discard block |
||
90 | 90 | ): void { |
91 | 91 | $queryBuilder = $this->connection->createQueryBuilder() |
92 | 92 | ->delete($this->tableName->toNative()) |
93 | - ->where(SchemaConfigurator::USER . ' = ?') |
|
94 | - ->andWhere(SchemaConfigurator::ID . ' = ?') |
|
93 | + ->where(SchemaConfigurator::USER.' = ?') |
|
94 | + ->andWhere(SchemaConfigurator::ID.' = ?') |
|
95 | 95 | ->setParameters( |
96 | 96 | [ |
97 | 97 | $userId->toNative(), |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | $queryBuilder = $this->connection->createQueryBuilder() |
111 | 111 | ->select('*') |
112 | 112 | ->from($this->tableName->toNative()) |
113 | - ->where(SchemaConfigurator::USER . ' = ?') |
|
113 | + ->where(SchemaConfigurator::USER.' = ?') |
|
114 | 114 | ->setParameters( |
115 | 115 | [ |
116 | 116 | $this->userId->toNative(), |
@@ -15,9 +15,9 @@ |
||
15 | 15 | |
16 | 16 | $query = implode(' OR ', $queryParts); |
17 | 17 | if (count($queryParts) > 1) { |
18 | - $query = '(' . $query . ')'; |
|
18 | + $query = '('.$query.')'; |
|
19 | 19 | } |
20 | - $query = 'createdby:' . $query; |
|
20 | + $query = 'createdby:'.$query; |
|
21 | 21 | |
22 | 22 | parent::__construct($query); |
23 | 23 | } |
@@ -19,9 +19,9 @@ |
||
19 | 19 | StringLiteral $constraint, |
20 | 20 | StringLiteral $offerId |
21 | 21 | ) { |
22 | - $constraintStr = '(' . $constraint->toNative() . ')'; |
|
22 | + $constraintStr = '('.$constraint->toNative().')'; |
|
23 | 23 | $offerIdStr = $offerId->toNative(); |
24 | 24 | |
25 | - return '(' . $constraintStr . ' AND id:' . $offerIdStr . ')'; |
|
25 | + return '('.$constraintStr.' AND id:'.$offerIdStr.')'; |
|
26 | 26 | } |
27 | 27 | } |
@@ -15,9 +15,9 @@ |
||
15 | 15 | |
16 | 16 | $query = implode(' OR ', $queryParts); |
17 | 17 | if (count($queryParts) > 1) { |
18 | - $query = '(' . $query . ')'; |
|
18 | + $query = '('.$query.')'; |
|
19 | 19 | } |
20 | - $query = 'creator:' . $query; |
|
20 | + $query = 'creator:'.$query; |
|
21 | 21 | |
22 | 22 | parent::__construct($query); |
23 | 23 | } |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | |
79 | 79 | $request = new Request( |
80 | 80 | 'GET', |
81 | - (string) $url, |
|
81 | + (string)$url, |
|
82 | 82 | $headers |
83 | 83 | ); |
84 | 84 | |
@@ -88,6 +88,6 @@ discard block |
||
88 | 88 | $response->getBody()->getContents() |
89 | 89 | ); |
90 | 90 | |
91 | - return (int) $decodedResponse->{'totalItems'}; |
|
91 | + return (int)$decodedResponse->{'totalItems'}; |
|
92 | 92 | } |
93 | 93 | } |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | */ |
260 | 260 | public function importLabels(Labels $labels, Labels $labelsToKeepIfAlreadyOnOrganizer) |
261 | 261 | { |
262 | - $convertLabelClass = function (\CultuurNet\UDB3\Model\ValueObject\Taxonomy\Label\Label $label) { |
|
262 | + $convertLabelClass = function(\CultuurNet\UDB3\Model\ValueObject\Taxonomy\Label\Label $label) { |
|
263 | 263 | return new Label( |
264 | 264 | $label->getName()->toString(), |
265 | 265 | $label->isVisible() |
@@ -290,7 +290,7 @@ discard block |
||
290 | 290 | foreach ($addedLabels->asArray() as $addedLabel) { |
291 | 291 | $importLabels = $importLabels->with( |
292 | 292 | new \CultuurNet\UDB3\Model\ValueObject\Taxonomy\Label\Label( |
293 | - new LabelName((string) $addedLabel), |
|
293 | + new LabelName((string)$addedLabel), |
|
294 | 294 | $addedLabel->isVisible() |
295 | 295 | ) |
296 | 296 | ); |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | protected function applyOrganizerImportedFromUDB2( |
360 | 360 | OrganizerImportedFromUDB2 $organizerImported |
361 | 361 | ) { |
362 | - $this->actorId = (string) $organizerImported->getActorId(); |
|
362 | + $this->actorId = (string)$organizerImported->getActorId(); |
|
363 | 363 | |
364 | 364 | // On import from UDB2 the default main language is 'nl'. |
365 | 365 | $this->mainLanguage = new Language('nl'); |
@@ -48,14 +48,14 @@ discard block |
||
48 | 48 | public function getLabelsToImport() |
49 | 49 | { |
50 | 50 | $labelNamesToKeep = array_map( |
51 | - function (Label $label) { |
|
51 | + function(Label $label) { |
|
52 | 52 | return $label->getName(); |
53 | 53 | }, |
54 | 54 | $this->labelsToKeepIfAlreadyOnOffer->toArray() |
55 | 55 | ); |
56 | 56 | |
57 | 57 | return $this->labels->filter( |
58 | - function (Label $label) use ($labelNamesToKeep) { |
|
58 | + function(Label $label) use ($labelNamesToKeep) { |
|
59 | 59 | return !in_array($label->getName(), $labelNamesToKeep); |
60 | 60 | } |
61 | 61 | ); |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | public function getNames() |
68 | 68 | { |
69 | 69 | return array_map( |
70 | - function (Label $label) { |
|
70 | + function(Label $label) { |
|
71 | 71 | return new StringLiteral($label->getName()->toString()); |
72 | 72 | }, |
73 | 73 | $this->getLabelsToImport()->toArray() |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | |
171 | 171 | $mainLanguageDetails = array_filter( |
172 | 172 | $details, |
173 | - function (\CultureFeed_Cdb_Data_Detail $detail) use ($mainLanguage) { |
|
173 | + function(\CultureFeed_Cdb_Data_Detail $detail) use ($mainLanguage) { |
|
174 | 174 | return $detail->getLanguage() === $mainLanguage->getCode(); |
175 | 175 | } |
176 | 176 | ); |
@@ -235,14 +235,14 @@ discard block |
||
235 | 235 | foreach ($translatedTariffs as $tariffName => $tariffPrice) { |
236 | 236 | if (!isset($tariffs[$tariffIndex])) { |
237 | 237 | $tariff = new Tariff( |
238 | - new MultilingualString(new Language($language), new StringLiteral((string) $tariffName)), |
|
238 | + new MultilingualString(new Language($language), new StringLiteral((string)$tariffName)), |
|
239 | 239 | Price::fromFloat($tariffPrice), |
240 | 240 | Currency::fromNative('EUR') |
241 | 241 | ); |
242 | 242 | } else { |
243 | 243 | $tariff = $tariffs[$tariffIndex]; |
244 | 244 | $name = $tariff->getName(); |
245 | - $name = $name->withTranslation(new Language($language), new StringLiteral((string) $tariffName)); |
|
245 | + $name = $name->withTranslation(new Language($language), new StringLiteral((string)$tariffName)); |
|
246 | 246 | $tariff = new Tariff( |
247 | 247 | $name, |
248 | 248 | $tariff->getPrice(), |