Passed
Pull Request — master (#17)
by BENOIT
02:08
created
src/Command/GenerateJWTCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -206,7 +206,7 @@
 block discarded – undo
206 206
             $value = $io->ask(
207 207
                 'TTL of this token in seconds (or hit ENTER for no expiration):',
208 208
                 null,
209
-                function ($value) {
209
+                function($value) {
210 210
                     if (null === $value) {
211 211
                         return null;
212 212
                     }
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
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         try {
46 46
             $config = $this->configuration->overrideWith(without_nullish_values($input->getOptions()))->asArray();
47 47
             $loop->futureTick(
48
-                function () use ($config, $output) {
48
+                function() use ($config, $output) {
49 49
                     $this->displayConfiguration($config, $output);
50 50
                 }
51 51
             );
Please login to merge, or discard this patch.
src/Storage/Redis/RedisStorage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
         /** @phpstan-ignore-next-line */
68 68
         return $this->async->keys($keyPattern)
69 69
             ->then(
70
-                function (array $keys) {
70
+                function(array $keys) {
71 71
                     $promises = [];
72 72
                     foreach ($keys as $key) {
73 73
                         $promises[] = $this->async->get($key); /** @phpstan-ignore-line */
Please login to merge, or discard this patch.
src/Storage/PHP/PHPStorage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
 
62 62
     public function findSubscriptionsBySubscriber(string $subscriber): PromiseInterface
63 63
     {
64
-        return resolve((function (string $subscriber) {
64
+        return resolve((function(string $subscriber) {
65 65
             foreach ($this->subscriptions as $subscription) {
66 66
                 if ($subscription->getSubscriber() === $subscriber) {
67 67
                     yield $subscription;
Please login to merge, or discard this patch.
src/Hub/Hub.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -62,13 +62,13 @@  discard block
 block discarded – undo
62 62
         $localAddress = $this->config[Configuration::ADDR];
63 63
         $this->shutdownSignal = null;
64 64
         $this->metricsHandler->resetUsers($localAddress);
65
-        $this->loop->addSignal(SIGINT, function ($signal) {
65
+        $this->loop->addSignal(SIGINT, function($signal) {
66 66
             $this->stop($signal, $this->loop);
67 67
         });
68 68
         $this->loop->addPeriodicTimer(
69 69
             15,
70 70
             fn() => $this->metricsHandler->getNbUsers()->then(
71
-                function (int $nbUsers) {
71
+                function(int $nbUsers) {
72 72
                     $memory = \memory_get_usage(true) / 1024 / 1024;
73 73
                     $this->logger()->debug("Users: {$nbUsers} - Memory: {$memory}MB");
74 74
                 }
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
     {
92 92
         return $this->storage->storeSubscriptions(...$subscriptions)
93 93
             ->then(
94
-                function () use ($subscriptions) {
94
+                function() use ($subscriptions) {
95 95
                     $promises = [];
96 96
                     foreach ($subscriptions as $subscription) {
97 97
                         $promises[] = $this->transport->publish(
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
     private function createSocketConnection(string $localAddress, LoopInterface $loop): Socket\Server
118 118
     {
119 119
         $socket = new Socket\Server($localAddress, $loop);
120
-        $socket->on('connection', function (ConnectionInterface $connection) use ($localAddress) {
120
+        $socket->on('connection', function(ConnectionInterface $connection) use ($localAddress) {
121 121
             $this->metricsHandler->incrementUsers($localAddress);
122 122
             $connection->on('close', fn() => $this->metricsHandler->decrementUsers($localAddress));
123 123
         });
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
     private function stop(int $signal, LoopInterface $loop): void
148 148
     {
149 149
         $this->shutdownSignal = $signal;
150
-        $loop->futureTick(function () use ($loop) {
150
+        $loop->futureTick(function() use ($loop) {
151 151
             $loop->stop();
152 152
         });
153 153
     }
Please login to merge, or discard this patch.
src/Model/Message.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
                 'event' => $this->event,
70 70
                 'retry' => $this->retry,
71 71
             ],
72
-            fn ($value) => null !== $value
72
+            fn($value) => null !== $value
73 73
         );
74 74
     }
75 75
 
Please login to merge, or discard this patch.