22
33namespace BeyondCode \LaravelWebSockets \PubSub \Drivers ;
44
5- use stdClass ;
5+ use BeyondCode \ LaravelWebSockets \ PubSub \ ReplicationInterface ;
66use React \EventLoop \LoopInterface ;
77use React \Promise \FulfilledPromise ;
88use React \Promise \PromiseInterface ;
9- use BeyondCode \ LaravelWebSockets \ PubSub \ ReplicationInterface ;
9+ use stdClass ;
1010
1111class LocalClient implements ReplicationInterface
1212{
@@ -23,7 +23,7 @@ class LocalClient implements ReplicationInterface
2323 * @param LoopInterface $loop
2424 * @return self
2525 */
26- public function boot (LoopInterface $ loop ) : ReplicationInterface
26+ public function boot (LoopInterface $ loop ): ReplicationInterface
2727 {
2828 return $ this ;
2929 }
@@ -36,7 +36,7 @@ public function boot(LoopInterface $loop) : ReplicationInterface
3636 * @param stdClass $payload
3737 * @return bool
3838 */
39- public function publish (string $ appId , string $ channel , stdClass $ payload ) : bool
39+ public function publish (string $ appId , string $ channel , stdClass $ payload ): bool
4040 {
4141 // Nothing to do, nobody to publish to
4242 return true ;
@@ -49,7 +49,7 @@ public function publish(string $appId, string $channel, stdClass $payload) : boo
4949 * @param string $channel
5050 * @return bool
5151 */
52- public function subscribe (string $ appId , string $ channel ) : bool
52+ public function subscribe (string $ appId , string $ channel ): bool
5353 {
5454 return true ;
5555 }
@@ -61,7 +61,7 @@ public function subscribe(string $appId, string $channel) : bool
6161 * @param string $channel
6262 * @return bool
6363 */
64- public function unsubscribe (string $ appId , string $ channel ) : bool
64+ public function unsubscribe (string $ appId , string $ channel ): bool
6565 {
6666 return true ;
6767 }
@@ -103,7 +103,7 @@ public function leaveChannel(string $appId, string $channel, string $socketId)
103103 * @param string $channel
104104 * @return PromiseInterface
105105 */
106- public function channelMembers (string $ appId , string $ channel ) : PromiseInterface
106+ public function channelMembers (string $ appId , string $ channel ): PromiseInterface
107107 {
108108 $ members = $ this ->channelData ["$ appId: $ channel " ] ?? [];
109109
@@ -122,7 +122,7 @@ public function channelMembers(string $appId, string $channel) : PromiseInterfac
122122 * @param array $channelNames
123123 * @return PromiseInterface
124124 */
125- public function channelMemberCounts (string $ appId , array $ channelNames ) : PromiseInterface
125+ public function channelMemberCounts (string $ appId , array $ channelNames ): PromiseInterface
126126 {
127127 $ results = [];
128128
0 commit comments