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

Commit 5024a2a

Browse files
committed
CS
1 parent 9da68ec commit 5024a2a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/Channels/PresenceChannelTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ public function multiple_clients_with_same_user_id_are_counted_once()
9090
'channel' => $channelName,
9191
'data' => json_encode([
9292
'presence' => [
93-
'ids' => [(string)$userId],
93+
'ids' => [(string) $userId],
9494
'hash' => [
95-
(string)$userId => [],
95+
(string) $userId => [],
9696
],
9797
'count' => 1,
9898
],
@@ -102,12 +102,12 @@ public function multiple_clients_with_same_user_id_are_counted_once()
102102

103103
private function getSignedMessage(Connection $connection, string $channelName, array $channelData): Message
104104
{
105-
$signature = "{$connection->socketId}:{$channelName}:" . json_encode($channelData);
105+
$signature = "{$connection->socketId}:{$channelName}:".json_encode($channelData);
106106

107107
return new Message(json_encode([
108108
'event' => 'pusher:subscribe',
109109
'data' => [
110-
'auth' => $connection->app->key . ':' . hash_hmac('sha256', $signature, $connection->app->secret),
110+
'auth' => $connection->app->key.':'.hash_hmac('sha256', $signature, $connection->app->secret),
111111
'channel' => $channelName,
112112
'channel_data' => json_encode($channelData),
113113
],

0 commit comments

Comments
 (0)