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

Commit

Permalink
Apply fixes from StyleCI (#1044)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpociot authored Oct 6, 2022
1 parent f2d3bae commit 1f25913
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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

0 comments on commit 1f25913

Please sign in to comment.