@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | |
223 | 223 | $event = new QueryEvent($query); |
224 | 224 | // The Event class has been removed in Symfony 5, so its absence is used as a trigger to stop using the LegacyEventDispatcherProxy. |
225 | - if (! class_exists(\Symfony\Component\EventDispatcher\Event::class) || class_exists(LegacyEventDispatcherProxy::class)) { |
|
225 | + if (!class_exists(\Symfony\Component\EventDispatcher\Event::class) || class_exists(LegacyEventDispatcherProxy::class)) { |
|
226 | 226 | $this->eventDispatcher->dispatch($event, QueryEvent::QUERY_PREPARED); |
227 | 227 | } else { |
228 | 228 | $this->eventDispatcher->dispatch(QueryEvent::QUERY_PREPARED, $event); |
@@ -262,7 +262,7 @@ discard block |
||
262 | 262 | $queryLog->setExecutionTime(microtime(true) - $queryLog->getStart()); |
263 | 263 | |
264 | 264 | $event = new QueryEvent($queryLog); |
265 | - if (! class_exists(\Symfony\Component\EventDispatcher\Event::class) || class_exists(LegacyEventDispatcherProxy::class)) { |
|
265 | + if (!class_exists(\Symfony\Component\EventDispatcher\Event::class) || class_exists(LegacyEventDispatcherProxy::class)) { |
|
266 | 266 | $this->eventDispatcher->dispatch($event, QueryEvent::QUERY_EXECUTED); |
267 | 267 | } else { |
268 | 268 | $this->eventDispatcher->dispatch(QueryEvent::QUERY_EXECUTED, $event); |