Apply fixes from StyleCI (#892)

This commit is contained in:
Marcel Pociot 2021-11-26 13:32:47 +01:00 committed by GitHub
parent c1312be337
commit f411510f3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 14 additions and 2 deletions

View File

@ -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)

View File

@ -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

View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -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()

View File

@ -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()

View File

@ -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

View File

@ -45,7 +45,7 @@ class Statistic
* Create a new statistic.
*
* @param string|int $appId
* @return void
* @return void
*/
public function __construct($appId)
{