Passed
Push — master ( abd2be...1dc290 )
by BENOIT
02:33
created
src/Hub/Hub.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,13 +46,13 @@  discard block
 block discarded – undo
46 46
         $localAddress = $this->config[Configuration::ADDR];
47 47
         $this->shutdownSignal = null;
48 48
         $this->metricsHandler->resetUsers($localAddress);
49
-        $loop->addSignal(SIGINT, function ($signal) use ($loop) {
49
+        $loop->addSignal(SIGINT, function($signal) use ($loop) {
50 50
             $this->stop($signal, $loop);
51 51
         });
52 52
         $loop->addPeriodicTimer(
53 53
             15,
54 54
             fn() => $this->metricsHandler->getNbUsers()->then(
55
-                function (int $nbUsers) {
55
+                function(int $nbUsers) {
56 56
                     $memory = \memory_get_usage(true) / 1024 / 1024;
57 57
                     $this->logger()->debug("Users: {$nbUsers} - Memory: {$memory}MB");
58 58
                 }
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     private function stop(int $signal, LoopInterface $loop): void
88 88
     {
89 89
         $this->shutdownSignal = $signal;
90
-        $loop->futureTick(function () use ($loop) {
90
+        $loop->futureTick(function() use ($loop) {
91 91
             $loop->stop();
92 92
         });
93 93
     }
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         $socket = new Socket\Server($localAddress, $loop);
98 98
         $socket->on(
99 99
             'connection',
100
-            function (Socket\ConnectionInterface $connection) use ($localAddress) {
100
+            function(Socket\ConnectionInterface $connection) use ($localAddress) {
101 101
                 $this->metricsHandler->incrementUsers($localAddress);
102 102
                 $connection->on('close', fn() => $this->metricsHandler->decrementUsers($localAddress));
103 103
             }
Please login to merge, or discard this patch.
src/Command/ServeCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
                 ->overrideWith($this->getInputOptions($input))
43 43
                 ->asArray();
44 44
 
45
-            $loop->futureTick(function () use ($config, $output) {
45
+            $loop->futureTick(function() use ($config, $output) {
46 46
                 $this->displayConfiguration($config, $output);
47 47
             });
48 48
 
Please login to merge, or discard this patch.
src/Command/StressSubscribersCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
         $url = $url->withQuery($qs);
64 64
         $nbSubscribers = (int) $input->getOption('subscribers');
65 65
 
66
-        $requests = function (HttpClientInterface $client, string $url) use ($nbSubscribers) {
66
+        $requests = function(HttpClientInterface $client, string $url) use ($nbSubscribers) {
67 67
             for ($i = 0; $i < $nbSubscribers; $i++) {
68 68
                 yield $client->request('GET', $url);
69 69
             }
Please login to merge, or discard this patch.