Passed
Push — master ( a3b46f...abd2be )
by BENOIT
03:03 queued 48s
created
src/Hub/Hub.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         $loop->addPeriodicTimer(
49 49
             15,
50 50
             fn() => $this->metricsHandler->getNbUsers()->then(
51
-                function (int $nbUsers) {
51
+                function(int $nbUsers) {
52 52
                     $memory = \memory_get_usage(true) / 1024 / 1024;
53 53
                     $this->logger()->debug("Users: {$nbUsers} - Memory: {$memory}MB");
54 54
                 }
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         );
57 57
         $socket->on(
58 58
             'connection',
59
-            function (Socket\ConnectionInterface $connection) use ($localAddress) {
59
+            function(Socket\ConnectionInterface $connection) use ($localAddress) {
60 60
                 $this->metricsHandler->incrementUsers($localAddress);
61 61
                 $connection->on('close', fn() => $this->metricsHandler->decrementUsers($localAddress));
62 62
             }
Please login to merge, or discard this patch.