@@ -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(); |
@@ -25,11 +25,11 @@ |
||
| 25 | 25 | */ |
| 26 | 26 | public function byId(StringLiteral $facilityId) |
| 27 | 27 | { |
| 28 | - if (!array_key_exists((string) $facilityId, $this->facilities)) { |
|
| 28 | + if (!array_key_exists((string)$facilityId, $this->facilities)) { |
|
| 29 | 29 | throw new \Exception("Unknown facility id '{$facilityId}'"); |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | - return $this->facilities[(string) $facilityId]; |
|
| 32 | + return $this->facilities[(string)$facilityId]; |
|
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | /** |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | public function getNames() |
| 50 | 50 | { |
| 51 | 51 | return [ |
| 52 | - new StringLiteral((string) $this->label), |
|
| 52 | + new StringLiteral((string)$this->label), |
|
| 53 | 53 | ]; |
| 54 | 54 | } |
| 55 | 55 | |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | public function getNames() |
| 39 | 39 | { |
| 40 | 40 | return array_map( |
| 41 | - function (Label $label) { |
|
| 41 | + function(Label $label) { |
|
| 42 | 42 | return new StringLiteral($label->getName()->toString()); |
| 43 | 43 | }, |
| 44 | 44 | $this->getLabels()->toArray() |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | public function getNames() |
| 39 | 39 | { |
| 40 | 40 | return array_map( |
| 41 | - function (Label $label) { |
|
| 41 | + function(Label $label) { |
|
| 42 | 42 | return new StringLiteral($label->getName()->toString()); |
| 43 | 43 | }, |
| 44 | 44 | $this->getLabels()->toArray() |
@@ -252,7 +252,7 @@ discard block |
||
| 252 | 252 | // Convert to imported labels to label collection. |
| 253 | 253 | $importLabelsCollection = new LabelCollection( |
| 254 | 254 | array_map( |
| 255 | - function (\CultuurNet\UDB3\Model\ValueObject\Taxonomy\Label\Label $label) { |
|
| 255 | + function(\CultuurNet\UDB3\Model\ValueObject\Taxonomy\Label\Label $label) { |
|
| 256 | 256 | return new Label( |
| 257 | 257 | $label->getName()->toString(), |
| 258 | 258 | $label->isVisible() |
@@ -322,7 +322,7 @@ discard block |
||
| 322 | 322 | protected function applyOrganizerImportedFromUDB2( |
| 323 | 323 | OrganizerImportedFromUDB2 $organizerImported |
| 324 | 324 | ) { |
| 325 | - $this->actorId = (string) $organizerImported->getActorId(); |
|
| 325 | + $this->actorId = (string)$organizerImported->getActorId(); |
|
| 326 | 326 | |
| 327 | 327 | // On import from UDB2 the default main language is 'nl'. |
| 328 | 328 | $this->mainLanguage = new Language('nl'); |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | use CultuurNet\UDB3\LabelCollection; |
| 13 | 13 | use CultuurNet\UDB3\Language; |
| 14 | 14 | use CultuurNet\UDB3\Model\ValueObject\Taxonomy\Label\Labels; |
| 15 | -use CultuurNet\UDB3\Organizer\Commands\ImportLabels; |
|
| 16 | 15 | use CultuurNet\UDB3\Organizer\Events\AddressUpdated; |
| 17 | 16 | use CultuurNet\UDB3\Organizer\Events\ContactPointUpdated; |
| 18 | 17 | use CultuurNet\UDB3\Organizer\Events\LabelAdded; |