Passed
Pull Request — master (#95)
by Ilario
04:37 queued 02:11
created
src/Capsule/Collection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.