diff --git a/src/API/Controller.php b/src/API/Controller.php index 079637a..965b16d 100644 --- a/src/API/Controller.php +++ b/src/API/Controller.php @@ -222,6 +222,7 @@ abstract class Controller implements HttpServerInterface * * @param mixed $appId * @return $this + * * @throws \Symfony\Component\HttpKernel\Exception\HttpException */ public function ensureValidAppId($appId) @@ -239,6 +240,7 @@ abstract class Controller implements HttpServerInterface * * @param \GuzzleHttp\Psr7\ServerRequest $request * @return $this + * * @throws \Symfony\Component\HttpKernel\Exception\HttpException */ protected function ensureValidSignature(Request $request) diff --git a/src/ChannelManagers/RedisChannelManager.php b/src/ChannelManagers/RedisChannelManager.php index f96aff2..a3b9ca0 100644 --- a/src/ChannelManagers/RedisChannelManager.php +++ b/src/ChannelManagers/RedisChannelManager.php @@ -577,7 +577,7 @@ class RedisChannelManager extends LocalChannelManager * Add a channel to the set list. * * @param string|int $appId - * @param string $channel + * @param string $channel * @return PromiseInterface */ public function addChannelToSet($appId, string $channel): PromiseInterface diff --git a/src/Channels/Channel.php b/src/Channels/Channel.php index 7cc7f37..e022d2a 100644 --- a/src/Channels/Channel.php +++ b/src/Channels/Channel.php @@ -73,6 +73,7 @@ class Channel * Add a new connection to the channel. * * @see https://pusher.com/docs/pusher_protocol#presence-channel-events + * * @param \Ratchet\ConnectionInterface $connection * @param \stdClass $payload * @return bool @@ -228,6 +229,7 @@ class Channel * @param \Ratchet\ConnectionInterface $connection * @param \stdClass $payload * @return void + * * @throws InvalidSignature */ protected function verifySignature(ConnectionInterface $connection, stdClass $payload) diff --git a/src/Channels/PresenceChannel.php b/src/Channels/PresenceChannel.php index 614fe8d..1d75b1f 100644 --- a/src/Channels/PresenceChannel.php +++ b/src/Channels/PresenceChannel.php @@ -15,9 +15,11 @@ class PresenceChannel extends PrivateChannel * Subscribe to the channel. * * @see https://pusher.com/docs/pusher_protocol#presence-channel-events + * * @param \Ratchet\ConnectionInterface $connection * @param \stdClass $payload * @return bool + * * @throws InvalidSignature */ public function subscribe(ConnectionInterface $connection, stdClass $payload): bool diff --git a/src/Channels/PrivateChannel.php b/src/Channels/PrivateChannel.php index 93914e5..48dad61 100644 --- a/src/Channels/PrivateChannel.php +++ b/src/Channels/PrivateChannel.php @@ -12,9 +12,11 @@ class PrivateChannel extends Channel * Subscribe to the channel. * * @see https://pusher.com/docs/pusher_protocol#presence-channel-events + * * @param \Ratchet\ConnectionInterface $connection * @param \stdClass $payload * @return bool + * * @throws InvalidSignature */ public function subscribe(ConnectionInterface $connection, stdClass $payload): bool diff --git a/src/Server/Exceptions/ConnectionsOverCapacity.php b/src/Server/Exceptions/ConnectionsOverCapacity.php index 37f0495..a4351e7 100644 --- a/src/Server/Exceptions/ConnectionsOverCapacity.php +++ b/src/Server/Exceptions/ConnectionsOverCapacity.php @@ -8,6 +8,7 @@ class ConnectionsOverCapacity extends WebSocketException * Initialize the instance. * * @see https://pusher.com/docs/pusher_protocol#error-codes + * * @return void */ public function __construct() diff --git a/src/Server/Exceptions/InvalidSignature.php b/src/Server/Exceptions/InvalidSignature.php index b2aaf79..23b8125 100644 --- a/src/Server/Exceptions/InvalidSignature.php +++ b/src/Server/Exceptions/InvalidSignature.php @@ -8,6 +8,7 @@ class InvalidSignature extends WebSocketException * Initialize the instance. * * @see https://pusher.com/docs/pusher_protocol#error-codes + * * @return void */ public function __construct() diff --git a/src/Server/Messages/PusherChannelProtocolMessage.php b/src/Server/Messages/PusherChannelProtocolMessage.php index c6f4f13..fc5e1eb 100644 --- a/src/Server/Messages/PusherChannelProtocolMessage.php +++ b/src/Server/Messages/PusherChannelProtocolMessage.php @@ -27,6 +27,7 @@ class PusherChannelProtocolMessage extends PusherClientMessage * Ping the connection. * * @see https://pusher.com/docs/pusher_protocol#ping-pong + * * @param \Ratchet\ConnectionInterface $connection * @return void */ @@ -45,6 +46,7 @@ class PusherChannelProtocolMessage extends PusherClientMessage * Subscribe to channel. * * @see https://pusher.com/docs/pusher_protocol#pusher-subscribe + * * @param \Ratchet\ConnectionInterface $connection * @param \stdClass $payload * @return void diff --git a/src/Statistics/Statistic.php b/src/Statistics/Statistic.php index b31d547..8de67c2 100644 --- a/src/Statistics/Statistic.php +++ b/src/Statistics/Statistic.php @@ -45,7 +45,7 @@ class Statistic * Create a new statistic. * * @param string|int $appId - * @return void + * @return void */ public function __construct($appId) {