@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace CCT\Component\Rest; |
6 | 6 | |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | */ |
193 | 193 | protected function shouldUseDefaultResponseTransformers(): bool |
194 | 194 | { |
195 | - return (bool)$this->config->get(Config::USE_DEFAULT_RESPONSE_TRANSFORMERS, true); |
|
195 | + return (bool) $this->config->get(Config::USE_DEFAULT_RESPONSE_TRANSFORMERS, true); |
|
196 | 196 | } |
197 | 197 | |
198 | 198 | /** |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace CCT\Component\Rest\Serializer; |
6 | 6 | |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | protected function applyEventSubscribers(): self |
171 | 171 | { |
172 | 172 | $eventSubscribers = $this->config->get(Config::EVENT_SUBSCRIBERS, []); |
173 | - $this->jmsSerializerBuilder->configureListeners(function (EventDispatcher $dispatcher) use ($eventSubscribers) { |
|
173 | + $this->jmsSerializerBuilder->configureListeners(function(EventDispatcher $dispatcher) use ($eventSubscribers) { |
|
174 | 174 | foreach ($eventSubscribers as $eventSubscriber) { |
175 | 175 | $dispatcher->addSubscriber($eventSubscriber); |
176 | 176 | } |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | { |
190 | 190 | $serializationHandlers = $this->config->get(Config::SERIALIZATION_HANDLERS, []); |
191 | 191 | $this->jmsSerializerBuilder->configureHandlers( |
192 | - function (HandlerRegistry $handlerRegistry) use ($serializationHandlers) { |
|
192 | + function(HandlerRegistry $handlerRegistry) use ($serializationHandlers) { |
|
193 | 193 | foreach ($serializationHandlers as $handler) { |
194 | 194 | $handlerRegistry->registerSubscribingHandler($handler); |
195 | 195 | } |