@@ -221,7 +221,7 @@ discard block |
||
221 | 221 | ); |
222 | 222 | |
223 | 223 | $event = new QueryEvent($query); |
224 | - if (! class_exists(\Symfony\Component\EventDispatcher\Event::class) || class_exists(LegacyEventDispatcherProxy::class)) { |
|
224 | + if (!class_exists(\Symfony\Component\EventDispatcher\Event::class) || class_exists(LegacyEventDispatcherProxy::class)) { |
|
225 | 225 | $this->eventDispatcher->dispatch($event, QueryEvent::QUERY_PREPARED); |
226 | 226 | } else { |
227 | 227 | $this->eventDispatcher->dispatch(QueryEvent::QUERY_PREPARED, $event); |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | $queryLog->setExecutionTime(microtime(true) - $queryLog->getStart()); |
262 | 262 | |
263 | 263 | $event = new QueryEvent($queryLog); |
264 | - if (! class_exists(\Symfony\Component\EventDispatcher\Event::class) || class_exists(LegacyEventDispatcherProxy::class)) { |
|
264 | + if (!class_exists(\Symfony\Component\EventDispatcher\Event::class) || class_exists(LegacyEventDispatcherProxy::class)) { |
|
265 | 265 | $this->eventDispatcher->dispatch($event, QueryEvent::QUERY_EXECUTED); |
266 | 266 | } else { |
267 | 267 | $this->eventDispatcher->dispatch(QueryEvent::QUERY_EXECUTED, $event); |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | */ |
80 | 80 | private function buildClientConfiguration(array $conf): ClientConfiguration |
81 | 81 | { |
82 | - if (! $conf['uri']) { |
|
82 | + if (!$conf['uri']) { |
|
83 | 83 | $conf['uri'] = $this->buildConnectionUri($conf['hosts']); |
84 | 84 | } |
85 | 85 | |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | return 'mongodb://' . implode( |
114 | 114 | ',', |
115 | 115 | array_map( |
116 | - function (array $host) { |
|
116 | + function(array $host) { |
|
117 | 117 | return sprintf('%s:%d', $host['host'], $host['port']); |
118 | 118 | }, |
119 | 119 | $hosts |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | { |
151 | 151 | $clientKey = null !== $databaseName ? $name . '.' . $databaseName : $name; |
152 | 152 | |
153 | - if (! isset($this->clients[$clientKey])) { |
|
153 | + if (!isset($this->clients[$clientKey])) { |
|
154 | 154 | $conf = $this->configurations[$name]; |
155 | 155 | $options = array_merge( |
156 | 156 | [ |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | $this->clients[$clientKey] = $this->buildClient($name, $conf->getUri(), $options, $conf->getDriverOptions()); |
163 | 163 | |
164 | 164 | $event = new ConnectionEvent($clientKey); |
165 | - if (! class_exists(\Symfony\Component\EventDispatcher\Event::class) || $this->eventDispatcher instanceof LegacyEventDispatcherProxy) { |
|
165 | + if (!class_exists(\Symfony\Component\EventDispatcher\Event::class) || $this->eventDispatcher instanceof LegacyEventDispatcherProxy) { |
|
166 | 166 | $this->eventDispatcher->dispatch($event, ConnectionEvent::CLIENT_CREATED); |
167 | 167 | } else { |
168 | 168 | $this->eventDispatcher->dispatch(ConnectionEvent::CLIENT_CREATED, $event); |