Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Apply fixes from StyleCI #1044

Merged
merged 1 commit into from
Oct 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Console/Commands/StartServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion src/Server/Loggers/ConnectionLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Server/Loggers/WebSocketsLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down