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

Commit 20b45be

Browse files
authored
Apply fixes from StyleCI (#1023)
1 parent 936a5bd commit 20b45be

10 files changed

+15
-3
lines changed

src/API/Controller.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ protected function sendAndClose(ConnectionInterface $connection, $response)
222222
*
223223
* @param mixed $appId
224224
* @return $this
225+
*
225226
* @throws \Symfony\Component\HttpKernel\Exception\HttpException
226227
*/
227228
public function ensureValidAppId($appId)
@@ -239,6 +240,7 @@ public function ensureValidAppId($appId)
239240
*
240241
* @param \GuzzleHttp\Psr7\ServerRequest $request
241242
* @return $this
243+
*
242244
* @throws \Symfony\Component\HttpKernel\Exception\HttpException
243245
*/
244246
protected function ensureValidSignature(Request $request)

src/API/TriggerEvent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@ public function __invoke(Request $request)
6060
]);
6161
}
6262

63-
return (object)[];
63+
return (object) [];
6464
}
6565
}

src/ChannelManagers/RedisChannelManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ public function getConnectionsFromSet(int $start = 0, int $stop = 0, bool $stric
577577
* Add a channel to the set list.
578578
*
579579
* @param string|int $appId
580-
* @param string $channel
580+
* @param string $channel
581581
* @return PromiseInterface
582582
*/
583583
public function addChannelToSet($appId, string $channel): PromiseInterface

src/Channels/Channel.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public function hasConnections(): bool
7373
* Add a new connection to the channel.
7474
*
7575
* @see https://pusher.com/docs/pusher_protocol#presence-channel-events
76+
*
7677
* @param \Ratchet\ConnectionInterface $connection
7778
* @param \stdClass $payload
7879
* @return bool
@@ -226,6 +227,7 @@ public function broadcastLocallyToEveryoneExcept(stdClass $payload, ?string $soc
226227
* @param \Ratchet\ConnectionInterface $connection
227228
* @param \stdClass $payload
228229
* @return void
230+
*
229231
* @throws InvalidSignature
230232
*/
231233
protected function verifySignature(ConnectionInterface $connection, stdClass $payload)

src/Channels/PresenceChannel.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@ class PresenceChannel extends PrivateChannel
1515
* Subscribe to the channel.
1616
*
1717
* @see https://pusher.com/docs/pusher_protocol#presence-channel-events
18+
*
1819
* @param \Ratchet\ConnectionInterface $connection
1920
* @param \stdClass $payload
2021
* @return bool
22+
*
2123
* @throws InvalidSignature
2224
*/
2325
public function subscribe(ConnectionInterface $connection, stdClass $payload): bool

src/Channels/PrivateChannel.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ class PrivateChannel extends Channel
1212
* Subscribe to the channel.
1313
*
1414
* @see https://pusher.com/docs/pusher_protocol#presence-channel-events
15+
*
1516
* @param \Ratchet\ConnectionInterface $connection
1617
* @param \stdClass $payload
1718
* @return bool
19+
*
1820
* @throws InvalidSignature
1921
*/
2022
public function subscribe(ConnectionInterface $connection, stdClass $payload): bool

src/Server/Exceptions/ConnectionsOverCapacity.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class ConnectionsOverCapacity extends WebSocketException
88
* Initialize the instance.
99
*
1010
* @see https://pusher.com/docs/pusher_protocol#error-codes
11+
*
1112
* @return void
1213
*/
1314
public function __construct()

src/Server/Exceptions/InvalidSignature.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class InvalidSignature extends WebSocketException
88
* Initialize the instance.
99
*
1010
* @see https://pusher.com/docs/pusher_protocol#error-codes
11+
*
1112
* @return void
1213
*/
1314
public function __construct()

src/Server/Messages/PusherChannelProtocolMessage.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public function respond()
2727
* Ping the connection.
2828
*
2929
* @see https://pusher.com/docs/pusher_protocol#ping-pong
30+
*
3031
* @param \Ratchet\ConnectionInterface $connection
3132
* @return void
3233
*/
@@ -45,6 +46,7 @@ protected function ping(ConnectionInterface $connection)
4546
* Subscribe to channel.
4647
*
4748
* @see https://pusher.com/docs/pusher_protocol#pusher-subscribe
49+
*
4850
* @param \Ratchet\ConnectionInterface $connection
4951
* @param \stdClass $payload
5052
* @return void

src/Statistics/Statistic.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class Statistic
4545
* Create a new statistic.
4646
*
4747
* @param string|int $appId
48-
* @return void
48+
* @return void
4949
*/
5050
public function __construct($appId)
5151
{

0 commit comments

Comments
 (0)