From c2824c13cf7d6d3c6c5d27ee6f36e17de5f4fac1 Mon Sep 17 00:00:00 2001 From: joedixon Date: Fri, 24 Nov 2023 11:58:59 +0000 Subject: [PATCH] Fix code styling --- src/Channels/Channel.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Channels/Channel.php b/src/Channels/Channel.php index c31cd351..7d951e06 100644 --- a/src/Channels/Channel.php +++ b/src/Channels/Channel.php @@ -6,7 +6,6 @@ use Illuminate\Support\Arr; use Laravel\Reverb\Contracts\ChannelConnectionManager; use Laravel\Reverb\Contracts\Connection; -use Laravel\Reverb\Output; use React\Promise\Promise; class Channel @@ -97,7 +96,7 @@ public function broadcast(array $payload, Connection $except = null): void if ($except && $except->id() === $connection->connection()->id()) { break; } - + if (isset($payload['except']) && $payload['except'] === $connection->connection()->id()) { break; } @@ -106,8 +105,8 @@ public function broadcast(array $payload, Connection $except = null): void $resolve(); } } catch (Exception $e) { - $reject($e); - } + $reject($e); + } }); } }