Apply fixes from StyleCI (#1044)
This commit is contained in:
parent
f2d3baebbd
commit
1f25913ce0
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue