diff --git a/src/Console/Commands/StartServer.php b/src/Console/Commands/StartServer.php index 429b478ffd..af2de1925c 100644 --- a/src/Console/Commands/StartServer.php +++ b/src/Console/Commands/StartServer.php @@ -13,8 +13,8 @@ use Illuminate\Support\Facades\Cache; use React\EventLoop\Factory as LoopFactory; use React\EventLoop\LoopInterface; -use Symfony\Component\Console\Output\OutputInterface; use function React\Promise\all; +use Symfony\Component\Console\Output\OutputInterface; class StartServer extends Command { diff --git a/src/Server/Loggers/ConnectionLogger.php b/src/Server/Loggers/ConnectionLogger.php index 62d2bb53da..6fb1ebc160 100644 --- a/src/Server/Loggers/ConnectionLogger.php +++ b/src/Server/Loggers/ConnectionLogger.php @@ -50,7 +50,7 @@ public function send($data) $socketId = $this->connection->socketId ?? null; $appId = $this->connection->app->id ?? null; - $this->info("[{$appId}][{$socketId}] Sending message ". ($this->verbose ? $data : '')); + $this->info("[{$appId}][{$socketId}] Sending message ".($this->verbose ? $data : '')); $this->connection->send($data); } diff --git a/src/Server/Loggers/WebSocketsLogger.php b/src/Server/Loggers/WebSocketsLogger.php index 56e7c1a84c..5035c21274 100644 --- a/src/Server/Loggers/WebSocketsLogger.php +++ b/src/Server/Loggers/WebSocketsLogger.php @@ -67,7 +67,7 @@ public function onOpen(ConnectionInterface $connection) */ public function onMessage(ConnectionInterface $connection, MessageInterface $message) { - $this->info("[{$connection->app->id}][{$connection->socketId}] Received message ". ($this->verbose ? $message->getPayload() : '')); + $this->info("[{$connection->app->id}][{$connection->socketId}] Received message ".($this->verbose ? $message->getPayload() : '')); $this->app->onMessage(ConnectionLogger::decorate($connection), $message); }