From 7393006666a21a519c15e7d3181fddf43e508b24 Mon Sep 17 00:00:00 2001 From: freek Date: Thu, 22 Nov 2018 00:15:39 +0100 Subject: [PATCH] nitpicks --- src/LaravelEcho/Pusher/PusherMessage.php | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/LaravelEcho/Pusher/PusherMessage.php b/src/LaravelEcho/Pusher/PusherMessage.php index 4a1f413..71e7b7b 100644 --- a/src/LaravelEcho/Pusher/PusherMessage.php +++ b/src/LaravelEcho/Pusher/PusherMessage.php @@ -36,26 +36,20 @@ class PusherMessage implements RespondableMessage } } - /** + /* * @link https://pusher.com/docs/pusher_protocol#ping-pong - * - * @param ConnectionInterface $connection - * @param $payload */ - protected function ping(ConnectionInterface $connection, $payload) + protected function ping(ConnectionInterface $connection) { $connection->send(json_encode([ 'event' => 'pusher:pong', ])); } - /** + /* * @link https://pusher.com/docs/pusher_protocol#pusher-subscribe - * - * @param ConnectionInterface $conn - * @param $payload */ - protected function subscribe(ConnectionInterface $connection, $payload) + protected function subscribe(ConnectionInterface $connection, stdClass $payload) { $channel = $this->channelManager->findOrCreate($connection->appId, $payload->channel);