Passed
Pull Request — master (#95)
by Alessandro
02:36
created
src/Capsule/Collection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Services/ClientRegistry.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.