diff --git a/src/Exceptions/InvalidClient.php b/src/Exceptions/InvalidClient.php index 092acd6..d76c8ef 100644 --- a/src/Exceptions/InvalidClient.php +++ b/src/Exceptions/InvalidClient.php @@ -2,7 +2,6 @@ namespace BeyondCode\LaravelWebSockets\Exceptions; - use Exception; class InvalidClient extends Exception diff --git a/src/Http/Controllers/SendMessage.php b/src/Http/Controllers/SendMessage.php index fe13011..b8aaa0c 100644 --- a/src/Http/Controllers/SendMessage.php +++ b/src/Http/Controllers/SendMessage.php @@ -18,6 +18,10 @@ class SendMessage ); return (new PusherBroadcaster($pusher)) - ->broadcast([$request->channel], $request->event, json_decode($request->data, true)); + ->broadcast( + [$request->channel], + $request->event, + json_decode($request->data, true) + ); } -} \ No newline at end of file +}