|
@@ -96,7 +96,7 @@ discard block |
|
|
block discarded – undo |
|
96
|
96
|
$this->getSessionId(); |
|
97
|
97
|
try { |
|
98
|
98
|
if (!$tokenOptions) { |
|
99
|
|
- $tokenOptions = new TokenOptions(OpenViduRole::PUBLISHER);; |
|
|
99
|
+ $tokenOptions = new TokenOptions(OpenViduRole::PUBLISHER); ; |
|
100
|
100
|
} |
|
101
|
101
|
$response = $this->client->post(Uri::TOKEN_URI, [ |
|
102
|
102
|
RequestOptions::JSON => array_merge($tokenOptions->toArray(), ['session' => $this->sessionId]) |
|
@@ -290,7 +290,7 @@ discard block |
|
|
block discarded – undo |
|
290
|
290
|
private function leaveSession(string $connectionId) |
|
291
|
291
|
{ |
|
292
|
292
|
$connectionClosed = null; |
|
293
|
|
- $this->activeConnections = array_filter($this->activeConnections, function (Connection $connection) use (&$connectionClosed, $connectionId) { |
|
|
293
|
+ $this->activeConnections = array_filter($this->activeConnections, function(Connection $connection) use (&$connectionClosed, $connectionId) { |
|
294
|
294
|
if ($connection->getConnectionId() !== $connectionId) { |
|
295
|
295
|
return true; |
|
296
|
296
|
} |
Please login to merge, or discard this patch.