@@ -277,7 +277,7 @@ |
||
277 | 277 | protected function applyOrganizerImportedFromUDB2( |
278 | 278 | OrganizerImportedFromUDB2 $organizerImported |
279 | 279 | ) { |
280 | - $this->actorId = (string) $organizerImported->getActorId(); |
|
280 | + $this->actorId = (string)$organizerImported->getActorId(); |
|
281 | 281 | |
282 | 282 | // On import from UDB2 the default main language is 'nl'. |
283 | 283 | $this->mainLanguage = new Language('nl'); |
@@ -205,7 +205,7 @@ discard block |
||
205 | 205 | $sameFacilities = array_uintersect( |
206 | 206 | $facilities1, |
207 | 207 | $facilities2, |
208 | - function (Facility $facility1, Facility $facility2) { |
|
208 | + function(Facility $facility1, Facility $facility2) { |
|
209 | 209 | return strcmp($facility1->getId(), $facility2->getId()); |
210 | 210 | } |
211 | 211 | ); |
@@ -275,7 +275,7 @@ discard block |
||
275 | 275 | if ($language->getCode() !== $this->mainLanguage->getCode()) { |
276 | 276 | $event = $this->createDescriptionTranslatedEvent($language, $description); |
277 | 277 | } else { |
278 | - $event = $this->createDescriptionUpdatedEvent((string) $description); |
|
278 | + $event = $this->createDescriptionUpdatedEvent((string)$description); |
|
279 | 279 | } |
280 | 280 | |
281 | 281 | $this->apply($event); |
@@ -643,7 +643,7 @@ discard block |
||
643 | 643 | if ($this->rejectedReason && $reason->sameValueAs($this->rejectedReason)) { |
644 | 644 | return true; // nothing left to do if the offer has already been rejected for the same reason |
645 | 645 | } else { |
646 | - throw new Exception('The offer has already been rejected for another reason: ' . $this->rejectedReason); |
|
646 | + throw new Exception('The offer has already been rejected for another reason: '.$this->rejectedReason); |
|
647 | 647 | } |
648 | 648 | } |
649 | 649 | |
@@ -800,7 +800,7 @@ discard block |
||
800 | 800 | $dutchImagesList = $imagesEvent->getImages()->toArray(); |
801 | 801 | $translatedImagesList = array_filter( |
802 | 802 | $this->images->toArray(), |
803 | - function (Image $image) { |
|
803 | + function(Image $image) { |
|
804 | 804 | return $image->getLanguage()->getCode() !== 'nl'; |
805 | 805 | } |
806 | 806 | ); |
@@ -19,7 +19,7 @@ |
||
19 | 19 | { |
20 | 20 | if (!is_string($itemId)) { |
21 | 21 | throw new \InvalidArgumentException( |
22 | - 'Expected itemId to be a string, received ' . gettype($itemId) |
|
22 | + 'Expected itemId to be a string, received '.gettype($itemId) |
|
23 | 23 | ); |
24 | 24 | } |
25 | 25 |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | $tableName |
28 | 28 | ) { |
29 | 29 | $this->connection = $connection; |
30 | - $this->tableName = (string) $tableName; |
|
30 | + $this->tableName = (string)$tableName; |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | /** |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | ->select(UniqueDBALEventStoreDecorator::UUID_COLUMN) |
42 | 42 | ->from($this->tableName) |
43 | 43 | ->where($expr->eq(UniqueDBALEventStoreDecorator::UNIQUE_COLUMN, ':url')) |
44 | - ->setParameter(':url', (string) $url) |
|
44 | + ->setParameter(':url', (string)$url) |
|
45 | 45 | ->execute(); |
46 | 46 | |
47 | 47 | $uuid = $results->fetchColumn(); |