Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Apply fixes from StyleCI #892

Merged
merged 1 commit into from
Nov 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/API/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ protected function sendAndClose(ConnectionInterface $connection, $response)
*
* @param mixed $appId
* @return $this
*
* @throws \Symfony\Component\HttpKernel\Exception\HttpException
*/
public function ensureValidAppId($appId)
Expand All @@ -239,6 +240,7 @@ public function ensureValidAppId($appId)
*
* @param \GuzzleHttp\Psr7\ServerRequest $request
* @return $this
*
* @throws \Symfony\Component\HttpKernel\Exception\HttpException
*/
protected function ensureValidSignature(Request $request)
Expand Down
2 changes: 1 addition & 1 deletion src/ChannelManagers/RedisChannelManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ public function getConnectionsFromSet(int $start = 0, int $stop = 0, bool $stric
* 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
Expand Down
2 changes: 2 additions & 0 deletions src/Channels/Channel.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public function hasConnections(): bool
* 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
Expand Down Expand Up @@ -228,6 +229,7 @@ public function broadcastLocallyToEveryoneExcept(stdClass $payload, ?string $soc
* @param \Ratchet\ConnectionInterface $connection
* @param \stdClass $payload
* @return void
*
* @throws InvalidSignature
*/
protected function verifySignature(ConnectionInterface $connection, stdClass $payload)
Expand Down
2 changes: 2 additions & 0 deletions src/Channels/PresenceChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/Channels/PrivateChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/Server/Exceptions/ConnectionsOverCapacity.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
1 change: 1 addition & 0 deletions src/Server/Exceptions/InvalidSignature.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 2 additions & 0 deletions src/Server/Messages/PusherChannelProtocolMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public function respond()
* Ping the connection.
*
* @see https://pusher.com/docs/pusher_protocol#ping-pong
*
* @param \Ratchet\ConnectionInterface $connection
* @return void
*/
Expand All @@ -45,6 +46,7 @@ protected function ping(ConnectionInterface $connection)
* Subscribe to channel.
*
* @see https://pusher.com/docs/pusher_protocol#pusher-subscribe
*
* @param \Ratchet\ConnectionInterface $connection
* @param \stdClass $payload
* @return void
Expand Down
2 changes: 1 addition & 1 deletion src/Statistics/Statistic.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Statistic
* Create a new statistic.
*
* @param string|int $appId
* @return void
* @return void
*/
public function __construct($appId)
{
Expand Down