From 323f3a927bbfef99295b25d250588d7f14aa227e Mon Sep 17 00:00:00 2001 From: joedixon Date: Mon, 27 Nov 2023 14:07:09 +0000 Subject: [PATCH] Fix code styling --- tests/Specification/spec-server.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/Specification/spec-server.php b/tests/Specification/spec-server.php index fa30e408..7babfc4f 100644 --- a/tests/Specification/spec-server.php +++ b/tests/Specification/spec-server.php @@ -6,16 +6,15 @@ use Laravel\Reverb\WebSockets\WsConnection; use Psr\Http\Message\RequestInterface; use React\EventLoop\Loop; -use React\Http\HttpServer; use React\Socket\SocketServer; use Symfony\Component\Routing\Matcher\UrlMatcher; use Symfony\Component\Routing\RequestContext; use Symfony\Component\Routing\RouteCollection; -require __DIR__ . '/vendor/autoload.php'; +require __DIR__.'/vendor/autoload.php'; $loop = Loop::get(); -$socket = new SocketServer("0.0.0.0:8080", [], $loop); +$socket = new SocketServer('0.0.0.0:8080', [], $loop); $router = new Router(new UrlMatcher(routes(), new RequestContext)); $server = new Server($socket, $router, $loop); @@ -28,7 +27,7 @@ function routes() { $routes = new RouteCollection; $routes->add( - 'sockets', + 'sockets', Route::get('/', function (RequestInterface $request, WsConnection $connection) { $connection->onMessage(function ($message) use ($connection) { $connection->send($message); @@ -39,4 +38,4 @@ function routes() ); return $routes; -} \ No newline at end of file +}