Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
joedixon committed Nov 20, 2023
1 parent dd25376 commit c3038c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Channels/Channel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit c3038c0

Please sign in to comment.