Apply fixes from StyleCI (#1044)

This commit is contained in:
Marcel Pociot 2022-10-06 20:42:05 +02:00 committed by GitHub
parent f2d3baebbd
commit 1f25913ce0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -13,8 +13,8 @@ use Illuminate\Console\Command;
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
{

View File

@ -50,7 +50,7 @@ class ConnectionLogger extends Logger implements ConnectionInterface
$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);
}

View File

@ -67,7 +67,7 @@ class WebSocketsLogger extends Logger implements MessageComponentInterface
*/
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);
}