@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | */ |
113 | 113 | public function getTagGroups(): iterable |
114 | 114 | { |
115 | - $cacheKey = $this->options['cache']['namespace'] . __FUNCTION__; |
|
115 | + $cacheKey = $this->options['cache']['namespace'].__FUNCTION__; |
|
116 | 116 | $groupDtoArrayCached = $this->cache->getItem($cacheKey); |
117 | 117 | |
118 | 118 | if ($groupDtoArrayCached->isHit()) { |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | if (method_exists(OptionsResolver::class, 'isNested')) { |
160 | 160 | $optionsResolver->setDefault( |
161 | 161 | 'cache', |
162 | - function (OptionsResolver $cacheOptionsResolver) { |
|
162 | + function(OptionsResolver $cacheOptionsResolver) { |
|
163 | 163 | $cacheOptionsResolver->setDefault('namespace', md5(__CLASS__)); |
164 | 164 | } |
165 | 165 | ); |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | ->append($this->getHttpProxyNode()) |
41 | 41 | ->end() |
42 | 42 | ->validate() |
43 | - ->ifTrue(function ($v) { |
|
43 | + ->ifTrue(function($v) { |
|
44 | 44 | if (empty($v['client']['proxy']['enabled'])) { |
45 | 45 | return false; |
46 | 46 | } |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | ->end() |
162 | 162 | ->end() |
163 | 163 | ->validate() |
164 | - ->ifTrue(function ($v) { |
|
164 | + ->ifTrue(function($v) { |
|
165 | 165 | return !empty($v['fetch_uri']) && empty($v['format']); |
166 | 166 | }) |
167 | 167 | ->thenInvalid('Resource format must also be configured if \'fetch_uri\' is present %s') |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | |
112 | 112 | foreach ($transitions as $transition) { |
113 | 113 | $transitionName = $transition->getName(); |
114 | - $queueNames[] = $this->queuePrefix . $transitionName; |
|
114 | + $queueNames[] = $this->queuePrefix.$transitionName; |
|
115 | 115 | } |
116 | 116 | |
117 | 117 | $this->distribute($payload, $queueNames); |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | $transition = array_shift($transitions); |
137 | 137 | |
138 | 138 | $transitionName = $transition->getName(); |
139 | - $queueName = $this->queuePrefix . $transitionName; |
|
139 | + $queueName = $this->queuePrefix.$transitionName; |
|
140 | 140 | |
141 | 141 | return $this->get($dtoClass, $queueName); |
142 | 142 | } |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | $channel->txRollback(); |
167 | 167 | |
168 | 168 | // closing an amqp channel only if some error has occurred, otherwise we are fine. |
169 | - $channel->close()->then(function () { |
|
169 | + $channel->close()->then(function() { |
|
170 | 170 | $this->amqpClient->disconnect(); |
171 | 171 | }); |
172 | 172 |
@@ -62,7 +62,7 @@ |
||
62 | 62 | { |
63 | 63 | $httpClient = $event->getClient(); |
64 | 64 | |
65 | - if (! $httpClient instanceof ProxyAwareClientInterface || ! $httpClient->isProxyEnabled()) { |
|
65 | + if (!$httpClient instanceof ProxyAwareClientInterface || !$httpClient->isProxyEnabled()) { |
|
66 | 66 | return; |
67 | 67 | } |
68 | 68 |
@@ -42,7 +42,7 @@ |
||
42 | 42 | |
43 | 43 | $optionsResolver->setDefault( |
44 | 44 | 'default_locale', |
45 | - function (Options $options, $previousValue) { |
|
45 | + function(Options $options, $previousValue) { |
|
46 | 46 | if (!is_array($options['locales']) || !in_array($previousValue, $options['locales'], true)) { |
47 | 47 | throw new InvalidOptionsException( |
48 | 48 | 'Value of the "default_locale" option is not present in locales array' |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | if ($eventDispatcher instanceof EventDispatcherInterface) { |
129 | 129 | $eventDispatcher->addListener( |
130 | 130 | ConsoleEvents::TERMINATE, |
131 | - function () use ($eventDispatcher, $e) { |
|
131 | + function() use ($eventDispatcher, $e) { |
|
132 | 132 | $connectFailedEvent = new ConnectFailedEvent($this, $e); |
133 | 133 | $eventDispatcher->dispatch(ConnectFailedEvent::NAME, $connectFailedEvent); |
134 | 134 | } |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | */ |
163 | 163 | public function isProxyEnabled(): bool |
164 | 164 | { |
165 | - return !! $this->options['proxy']['enabled']; |
|
165 | + return !!$this->options['proxy']['enabled']; |
|
166 | 166 | } |
167 | 167 | |
168 | 168 | /** |