Passed
Pull Request — master (#61)
by Timo
02:39
created
src/Tidal/WampWatch/SessionMonitor.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -69,12 +69,12 @@  discard block
 block discarded – undo
69 69
     public function getSessionInfo($sessionId)
70 70
     {
71 71
         return $this->session->call(self::SESSION_INFO_TOPIC, [$sessionId])->then(
72
-            function ($res) {
72
+            function($res) {
73 73
                 $this->emit('info', [$res]);
74 74
 
75 75
                 return $res;
76 76
             },
77
-            function (ErrorMessage $error) use ($sessionId) {
77
+            function(ErrorMessage $error) use ($sessionId) {
78 78
                 $this->emit('error', [$error, $sessionId]);
79 79
             }
80 80
         );
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
         }
95 95
 
96 96
         return $this->createPromiseAdapter(
97
-            function (callable $resolve) {
97
+            function(callable $resolve) {
98 98
                 $resolve($this->getList());
99 99
             }
100 100
         );
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
         // @var \Tidal\WampWatch\Subscription\Collection
172 172
         $collection = $this->getMetaSubscriptionCollection();
173 173
 
174
-        $collection->addSubscription(self::SESSION_JOIN_TOPIC, function (array $res) {
174
+        $collection->addSubscription(self::SESSION_JOIN_TOPIC, function(array $res) {
175 175
             $sessionInfo = $res[0];
176 176
             if (!$this->validateSessionInfo($sessionInfo) || $this->hasSession($sessionInfo)) {
177 177
                 return;
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
             $this->addSession($sessionInfo);
180 180
         });
181 181
 
182
-        $collection->addSubscription(self::SESSION_LEAVE_TOPIC, function (array $res) {
182
+        $collection->addSubscription(self::SESSION_LEAVE_TOPIC, function(array $res) {
183 183
             // @bug : wamp.session.on_leave is bugged as of crossbar.io 0.11.0
184 184
             // will provide sessionID when Browser closes/reloads,
185 185
             // but not when calling connection.close();
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
      */
210 210
     protected function getSessionIdRetrievalCallback()
211 211
     {
212
-        return function ($res) {
212
+        return function($res) {
213 213
             $this->setList($res[0]);
214 214
             $sessionIds = $this->getList();
215 215
             $this->emit('list', [$sessionIds]);
Please login to merge, or discard this patch.