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 * @param mixed $appId
* @return $this * @return $this
*
* @throws \Symfony\Component\HttpKernel\Exception\HttpException * @throws \Symfony\Component\HttpKernel\Exception\HttpException
*/ */
public function ensureValidAppId($appId) public function ensureValidAppId($appId)
@ -239,6 +240,7 @@ abstract class Controller implements HttpServerInterface
* *
* @param \GuzzleHttp\Psr7\ServerRequest $request * @param \GuzzleHttp\Psr7\ServerRequest $request
* @return $this * @return $this
*
* @throws \Symfony\Component\HttpKernel\Exception\HttpException * @throws \Symfony\Component\HttpKernel\Exception\HttpException
*/ */
protected function ensureValidSignature(Request $request) protected function ensureValidSignature(Request $request)

View File

@ -73,6 +73,7 @@ class Channel
* Add a new connection to the channel. * Add a new connection to the channel.
* *
* @see https://pusher.com/docs/pusher_protocol#presence-channel-events * @see https://pusher.com/docs/pusher_protocol#presence-channel-events
*
* @param \Ratchet\ConnectionInterface $connection * @param \Ratchet\ConnectionInterface $connection
* @param \stdClass $payload * @param \stdClass $payload
* @return bool * @return bool
@ -228,6 +229,7 @@ class Channel
* @param \Ratchet\ConnectionInterface $connection * @param \Ratchet\ConnectionInterface $connection
* @param \stdClass $payload * @param \stdClass $payload
* @return void * @return void
*
* @throws InvalidSignature * @throws InvalidSignature
*/ */
protected function verifySignature(ConnectionInterface $connection, stdClass $payload) protected function verifySignature(ConnectionInterface $connection, stdClass $payload)

View File

@ -15,9 +15,11 @@ class PresenceChannel extends PrivateChannel
* Subscribe to the channel. * Subscribe to the channel.
* *
* @see https://pusher.com/docs/pusher_protocol#presence-channel-events * @see https://pusher.com/docs/pusher_protocol#presence-channel-events
*
* @param \Ratchet\ConnectionInterface $connection * @param \Ratchet\ConnectionInterface $connection
* @param \stdClass $payload * @param \stdClass $payload
* @return bool * @return bool
*
* @throws InvalidSignature * @throws InvalidSignature
*/ */
public function subscribe(ConnectionInterface $connection, stdClass $payload): bool public function subscribe(ConnectionInterface $connection, stdClass $payload): bool

View File

@ -12,9 +12,11 @@ class PrivateChannel extends Channel
* Subscribe to the channel. * Subscribe to the channel.
* *
* @see https://pusher.com/docs/pusher_protocol#presence-channel-events * @see https://pusher.com/docs/pusher_protocol#presence-channel-events
*
* @param \Ratchet\ConnectionInterface $connection * @param \Ratchet\ConnectionInterface $connection
* @param \stdClass $payload * @param \stdClass $payload
* @return bool * @return bool
*
* @throws InvalidSignature * @throws InvalidSignature
*/ */
public function subscribe(ConnectionInterface $connection, stdClass $payload): bool public function subscribe(ConnectionInterface $connection, stdClass $payload): bool

View File

@ -8,6 +8,7 @@ class ConnectionsOverCapacity extends WebSocketException
* Initialize the instance. * Initialize the instance.
* *
* @see https://pusher.com/docs/pusher_protocol#error-codes * @see https://pusher.com/docs/pusher_protocol#error-codes
*
* @return void * @return void
*/ */
public function __construct() public function __construct()

View File

@ -8,6 +8,7 @@ class InvalidSignature extends WebSocketException
* Initialize the instance. * Initialize the instance.
* *
* @see https://pusher.com/docs/pusher_protocol#error-codes * @see https://pusher.com/docs/pusher_protocol#error-codes
*
* @return void * @return void
*/ */
public function __construct() public function __construct()

View File

@ -27,6 +27,7 @@ class PusherChannelProtocolMessage extends PusherClientMessage
* Ping the connection. * Ping the connection.
* *
* @see https://pusher.com/docs/pusher_protocol#ping-pong * @see https://pusher.com/docs/pusher_protocol#ping-pong
*
* @param \Ratchet\ConnectionInterface $connection * @param \Ratchet\ConnectionInterface $connection
* @return void * @return void
*/ */
@ -45,6 +46,7 @@ class PusherChannelProtocolMessage extends PusherClientMessage
* Subscribe to channel. * Subscribe to channel.
* *
* @see https://pusher.com/docs/pusher_protocol#pusher-subscribe * @see https://pusher.com/docs/pusher_protocol#pusher-subscribe
*
* @param \Ratchet\ConnectionInterface $connection * @param \Ratchet\ConnectionInterface $connection
* @param \stdClass $payload * @param \stdClass $payload
* @return void * @return void