From c3038c0db25f2cafafd22253bd14736c48e44876 Mon Sep 17 00:00:00 2001 From: Joe Dixon Date: Mon, 20 Nov 2023 21:20:26 +0000 Subject: [PATCH] formatting --- src/Channels/Channel.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Channels/Channel.php b/src/Channels/Channel.php index 79dbac96..a68883ce 100644 --- a/src/Channels/Channel.php +++ b/src/Channels/Channel.php @@ -55,9 +55,12 @@ public function unsubscribe(Connection $connection): void $this->connections->remove($connection); } + /** + * Determine if the connection is subscribed to the channel. + */ public function subscribed(Connection $connection): bool { - return $this->connections->find($connection); + return $this->connections->find($connection) !== null; } /**