Passed
Branch master (9932c9)
by Timo
08:51
created
src/Tidal/WampWatch/SessionMonitor.php 2 patches
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -100,8 +100,15 @@  discard block
 block discarded – undo
100 100
     }
101 101
     
102 102
     
103
+    /**
104
+     * @param callable $callback
105
+     */
103 106
     protected function retrieveSessionIds($callback = null) {
104 107
         $this->session->call(self::SESSION_LIST_TOPIC, [])->then(
108
+
109
+            /**
110
+             * @param callable $res
111
+             */
105 112
             function ($res)use($callback){
106 113
                 $this->sessionIds = $res[0];
107 114
                 $this->emit('list', [$this->sessionIds]);
@@ -109,6 +116,10 @@  discard block
 block discarded – undo
109 116
                     $callback($this->sessionIds);
110 117
                 }
111 118
             },
119
+
120
+            /**
121
+             * @param callable $error
122
+             */
112 123
             function ($error) {
113 124
                 $this->emit('error', [$error]);
114 125
             }
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,10 +7,8 @@
 block discarded – undo
7 7
  * For the full copyright and license information, please view the LICENSE file
8 8
  * that was distributed with this source code.
9 9
  */
10
-use Phaim\Server\Wamp\Util;
11
-use Thruway\ClientSession;
10
+use Phaim\Server\Wamp\Util;
12 11
 use Evenement\EventEmitterInterface;
13
-use Evenement\EventEmitterTrait;
14 12
 
15 13
 /**
16 14
  * Description of SessionMonitor
Please login to merge, or discard this patch.
src/Tidal/WampWatch/Util.php 1 patch
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,9 +8,9 @@
 block discarded – undo
8 8
  * that was distributed with this source code.
9 9
  */
10 10
 
11
-use Thruway\Common\Utils;
12
-use Thruway\ClientSession;
13
-use Thruway\Message\UnsubscribedMessage;
11
+use Thruway\Common\Utils;
12
+use Thruway\ClientSession;
13
+use Thruway\Message\UnsubscribedMessage;
14 14
 use React\Promise\Deferred;
15 15
 
16 16
 /**
Please login to merge, or discard this patch.