Passed
Push — master ( 832284...1e6bd5 )
by Jacobo
02:57
created
src/Session.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
         $this->getSessionId();
98 98
         try {
99 99
             if (!$tokenOptions) {
100
-                $tokenOptions = new TokenOptions(OpenViduRole::PUBLISHER);;
100
+                $tokenOptions = new TokenOptions(OpenViduRole::PUBLISHER); ;
101 101
             }
102 102
             $response = $this->client->post(Uri::TOKEN_URI, [
103 103
                 RequestOptions::JSON => array_merge($tokenOptions->toArray(), ['session' => $this->sessionId])
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
                 }
246 246
                 $this->activeConnections[] = ConnectionBuilder::build($ensure, $publishers, $subscribers);
247 247
             }
248
-            usort($this->activeConnections[], function ($a, $b) {
248
+            usort($this->activeConnections[], function($a, $b) {
249 249
                 if ($a->createdAt > $b->createdAt) {
250 250
                     return 1;
251 251
                 }
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
     private function leaveSession(string $connectionId)
301 301
     {
302 302
         $connectionClosed = null;
303
-        $this->activeConnections = array_filter($this->activeConnections, function (Connection $connection) use (&$connectionClosed, $connectionId) {
303
+        $this->activeConnections = array_filter($this->activeConnections, function(Connection $connection) use (&$connectionClosed, $connectionId) {
304 304
             if ($connection->getConnectionId() !== $connectionId) {
305 305
                 return true;
306 306
             }
Please login to merge, or discard this patch.