Apply fixes from StyleCI (#892)
This commit is contained in:
parent
c1312be337
commit
f411510f3e
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue