From 2dc6b7df92be8be69e7e2cc907dadf0e37641dae Mon Sep 17 00:00:00 2001 From: joedixon Date: Wed, 15 Nov 2023 08:56:33 +0000 Subject: [PATCH] Fix code styling --- src/Servers/Reverb/Console/Commands/StartServer.php | 2 -- src/Servers/Reverb/Factory.php | 2 +- src/WebSockets/WebSocketMiddleware.php | 3 +-- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Servers/Reverb/Console/Commands/StartServer.php b/src/Servers/Reverb/Console/Commands/StartServer.php index a3b3e26d..5d11191b 100644 --- a/src/Servers/Reverb/Console/Commands/StartServer.php +++ b/src/Servers/Reverb/Console/Commands/StartServer.php @@ -4,10 +4,8 @@ use Illuminate\Console\Command; use Laravel\Reverb\Concerns\InteractsWithAsyncRedis; -use Laravel\Reverb\Contracts\Logger; use Laravel\Reverb\Jobs\PingInactiveConnections; use Laravel\Reverb\Jobs\PruneStaleConnections; -use Laravel\Reverb\Loggers\CliLogger; use Laravel\Reverb\Output; use Laravel\Reverb\Servers\Reverb\Factory as ServerFactory; use React\EventLoop\Loop; diff --git a/src/Servers/Reverb/Factory.php b/src/Servers/Reverb/Factory.php index f88bafa2..89e9222b 100644 --- a/src/Servers/Reverb/Factory.php +++ b/src/Servers/Reverb/Factory.php @@ -31,7 +31,7 @@ public static function make(string $host = '0.0.0.0', string $port = '8080', Loo gc_enable(); set_time_limit(0); ob_implicit_flush(); - + $loop = $loop ?: Loop::get(); $socket = new SocketServer("{$host}:{$port}", [], $loop); diff --git a/src/WebSockets/WebSocketMiddleware.php b/src/WebSockets/WebSocketMiddleware.php index 4e7c9761..5653e271 100644 --- a/src/WebSockets/WebSocketMiddleware.php +++ b/src/WebSockets/WebSocketMiddleware.php @@ -3,16 +3,15 @@ namespace Laravel\Reverb\WebSockets; use Closure; +use Illuminate\Support\Str; use Laravel\Reverb\Application; use Laravel\Reverb\Contracts\ApplicationProvider; use Laravel\Reverb\Contracts\ConnectionManager; use Laravel\Reverb\Server; use Laravel\Reverb\Servers\Reverb\Connection; use Laravel\Reverb\WebSockets\Request as WebSocketRequest; -use Laravel\Reverb\WebSockets\WsConnection; use Psr\Http\Message\ServerRequestInterface; use React\Http\Message\Response; -use Illuminate\Support\Str; class WebSocketMiddleware {