@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace CCT\Component\Rest\Transformer; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace CCT\Component\Rest\Http\Definition; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace CCT\Component\Rest\Http; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace CCT\Component\Rest\Helper; |
6 | 6 |
@@ -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 | |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | */ |
131 | 131 | protected function shouldUseDefaultResponseTransformers(): bool |
132 | 132 | { |
133 | - return (bool)$this->config->get(Config::USE_DEFAULT_RESPONSE_TRANSFORMERS, true); |
|
133 | + return (bool) $this->config->get(Config::USE_DEFAULT_RESPONSE_TRANSFORMERS, true); |
|
134 | 134 | } |
135 | 135 | |
136 | 136 | protected function applyDefaultResponseTransformers(Config $config, SerializerInterface $serializer, $modelClass) |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace CCT\Component\Rest\EventListener; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace CCT\Component\Rest\Exception; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace CCT\Component\Rest\Model\Structure; |
6 | 6 |
@@ -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 | |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | } |
139 | 139 | |
140 | 140 | $eventSubscribers = $this->config->get(Config::EVENT_SUBSCRIBERS, []); |
141 | - $this->jmsSerializerBuilder->configureListeners(function (EventDispatcher $dispatcher) use ($eventSubscribers) { |
|
141 | + $this->jmsSerializerBuilder->configureListeners(function(EventDispatcher $dispatcher) use ($eventSubscribers) { |
|
142 | 142 | foreach ($eventSubscribers as $eventSubscriber) { |
143 | 143 | $dispatcher->addSubscriber($eventSubscriber); |
144 | 144 | } |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | |
147 | 147 | $serializationHandlers = $this->config->get(Config::SERIALIZATION_HANDLERS, []); |
148 | 148 | $this->jmsSerializerBuilder->configureHandlers( |
149 | - function (HandlerRegistry $handlerRegistry) use ($serializationHandlers) { |
|
149 | + function(HandlerRegistry $handlerRegistry) use ($serializationHandlers) { |
|
150 | 150 | foreach ($serializationHandlers as $handler) { |
151 | 151 | $handlerRegistry->registerSubscribingHandler($handler); |
152 | 152 | } |