@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | if (!$result->getType()->sameValueAs(OfferType::EVENT())) { |
| 76 | 76 | $skipped[] = $result->getId(); |
| 77 | 77 | $this->logger->warning( |
| 78 | - 'Skipped result with id ' . $result->getId() . ' because it\'s not an event according to the @id parser.' |
|
| 78 | + 'Skipped result with id '.$result->getId().' because it\'s not an event according to the @id parser.' |
|
| 79 | 79 | ); |
| 80 | 80 | continue; |
| 81 | 81 | } |
@@ -89,17 +89,17 @@ discard block |
||
| 89 | 89 | $this->commandBus->dispatch($command); |
| 90 | 90 | |
| 91 | 91 | $this->logger->info( |
| 92 | - 'Dispatched UpdateLocation for result with id ' . $command->getItemId() |
|
| 92 | + 'Dispatched UpdateLocation for result with id '.$command->getItemId() |
|
| 93 | 93 | ); |
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | $updated = count($commands); |
| 97 | 97 | $total = $updated + count($skipped); |
| 98 | 98 | |
| 99 | - $this->logger->info('Received ' . $total . ' results from the search api.'); |
|
| 100 | - $this->logger->info('Updated ' . $updated . ' events to the canonical location.'); |
|
| 99 | + $this->logger->info('Received '.$total.' results from the search api.'); |
|
| 100 | + $this->logger->info('Updated '.$updated.' events to the canonical location.'); |
|
| 101 | 101 | $this->logger->info( |
| 102 | - 'Skipped ' . count($skipped) . ' events:' . PHP_EOL . implode(PHP_EOL, $skipped) |
|
| 102 | + 'Skipped '.count($skipped).' events:'.PHP_EOL.implode(PHP_EOL, $skipped) |
|
| 103 | 103 | ); |
| 104 | 104 | } |
| 105 | 105 | } |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | use CultuurNet\UDB3\Offer\Commands\AbstractAddLabel; |
| 13 | 13 | use CultuurNet\UDB3\Offer\Commands\AbstractDeleteCurrentOrganizer; |
| 14 | 14 | use CultuurNet\UDB3\Offer\Commands\AbstractImportLabels; |
| 15 | -use CultuurNet\UDB3\Offer\Commands\AbstractLabelCommand; |
|
| 16 | 15 | use CultuurNet\UDB3\Offer\Commands\AbstractRemoveLabel; |
| 17 | 16 | use CultuurNet\UDB3\Offer\Commands\AbstractDeleteOffer; |
| 18 | 17 | use CultuurNet\UDB3\Offer\Commands\AbstractDeleteOrganizer; |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | $matches = []; |
| 110 | 110 | if (preg_match('/^handle(.+)$/', $method, $matches)) { |
| 111 | 111 | $command = $matches[1]; |
| 112 | - $classNameMethod = 'get' . $command . 'ClassName'; |
|
| 112 | + $classNameMethod = 'get'.$command.'ClassName'; |
|
| 113 | 113 | |
| 114 | 114 | if (method_exists($this, $classNameMethod)) { |
| 115 | 115 | $commandFullClassName = call_user_func(array($this, $classNameMethod)); |
@@ -304,7 +304,7 @@ discard block |
||
| 304 | 304 | { |
| 305 | 305 | $offer = $this->load($addLabel->getItemId()); |
| 306 | 306 | |
| 307 | - $labelName = (string) $addLabel->getLabel(); |
|
| 307 | + $labelName = (string)$addLabel->getLabel(); |
|
| 308 | 308 | $labelVisibility = $addLabel->getLabel()->isVisible(); |
| 309 | 309 | |
| 310 | 310 | // Load the label read model so we can determine the correct visibility. |