@@ -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. |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | |
81 | 81 | $offerRequest = new Request( |
82 | 82 | 'GET', |
83 | - (string) $offerQuery, |
|
83 | + (string)$offerQuery, |
|
84 | 84 | $headers |
85 | 85 | ); |
86 | 86 | |
@@ -89,14 +89,14 @@ discard block |
||
89 | 89 | ->getBody() |
90 | 90 | ->getContents(); |
91 | 91 | |
92 | - $this->logger->debug('Send SAPI3 request with the following parameters: ' . json_encode($queryParameters)); |
|
93 | - $this->logger->debug('Response data: ' . $searchResponseData); |
|
92 | + $this->logger->debug('Send SAPI3 request with the following parameters: '.json_encode($queryParameters)); |
|
93 | + $this->logger->debug('Response data: '.$searchResponseData); |
|
94 | 94 | |
95 | 95 | $searchResponseData = json_decode($searchResponseData); |
96 | 96 | |
97 | 97 | $offerIds = array_reduce( |
98 | 98 | $searchResponseData->{'member'}, |
99 | - function (OfferIdentifierCollection $offerIds, $item) { |
|
99 | + function(OfferIdentifierCollection $offerIds, $item) { |
|
100 | 100 | return $offerIds->with( |
101 | 101 | $this->offerIdentifier->fromIri(Url::fromNative($item->{'@id'})) |
102 | 102 | ); |