Completed
Push — ovr-feature/tests-1 ( e9a9a0 )
by Vasily
04:05
created
PHPDaemon/Servers/HTTP/Connection.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -344,6 +344,9 @@
 block discarded – undo
344 344
 
345 345
     /**
346 346
      * End request
347
+     * @param \stdClass $req
348
+     * @param integer $appStatus
349
+     * @param integer $protoStatus
347 350
      * @return void
348 351
      */
349 352
     public function endRequest($req, $appStatus, $protoStatus)
Please login to merge, or discard this patch.
PHPDaemon/Servers/WebSocket/Connection.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 
106 106
     /**
107 107
      * Get real frame type identificator
108
-     * @param $type
108
+     * @param string|null $type
109 109
      * @return integer
110 110
      */
111 111
     public function getFrameType($type)
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
 
219 219
     /**
220 220
      * Called when we're going to handshake.
221
-     * @return boolean               Handshake status
221
+     * @return false|null               Handshake status
222 222
      */
223 223
     public function handshake()
224 224
     {
@@ -446,6 +446,9 @@  discard block
 block discarded – undo
446 446
         return true;
447 447
     }
448 448
 
449
+    /**
450
+     * @param string $proto
451
+     */
449 452
     protected function switchToProtocol($proto)
450 453
     {
451 454
         $class = '\\PHPDaemon\\Servers\\WebSocket\\Protocols\\' . $proto;
Please login to merge, or discard this patch.
PHPDaemon/Servers/WebSocket/Protocols/V13.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -137,9 +137,9 @@
 block discarded – undo
137 137
 
138 138
     /**
139 139
      * Apply mask
140
-     * @param $data
140
+     * @param string|false $data
141 141
      * @param string|false $mask
142
-     * @return mixed
142
+     * @return string
143 143
      */
144 144
     public function mask($data, $mask)
145 145
     {
Please login to merge, or discard this patch.
PHPDaemon/SockJS/Application.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -399,7 +399,7 @@
 block discarded – undo
399 399
      * @param  string $method   [@todo description]
400 400
      * @param  object $req      [@todo description]
401 401
      * @param  object $upstream [@todo description]
402
-     * @return object
402
+     * @return string
403 403
      */
404 404
     public function callMethod($method, $req, $upstream)
405 405
     {
Please login to merge, or discard this patch.
PHPDaemon/SockJS/WebSocketConnectionProxy.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
      * Called when new frame received.
72 72
      * @param  string $data Frame's data.
73 73
      * @param  string $type Frame's type ("STRING" OR "BINARY").
74
-     * @return boolean      Success.
74
+     * @return boolean|null      Success.
75 75
      */
76 76
     public function onFrame($data, $type)
77 77
     {
Please login to merge, or discard this patch.
PHPDaemon/Thread/Generic.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -91,6 +91,7 @@
 block discarded – undo
91 91
     /**
92 92
      * Set ID of this Thread
93 93
      * @param integer Id
94
+     * @param integer $id
94 95
      * @return void
95 96
      */
96 97
     public function setId($id)
Please login to merge, or discard this patch.
PHPDaemon/Thread/Master.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -371,7 +371,7 @@
 block discarded – undo
371 371
     }
372 372
 
373 373
     /**
374
-     * @param $signo
374
+     * @param integer $signo
375 375
      */
376 376
     public function signalToChildren($signo)
377 377
     {
Please login to merge, or discard this patch.
PHPDaemon/Traits/Sessions.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
     /**
57 57
      * Deferred event 'onSessionStart'
58
-     * @return callable
58
+     * @return \Closure
59 59
      */
60 60
     public function onSessionStartEvent()
61 61
     {
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 
84 84
     /**
85 85
      * Deferred event 'onSessionRead'
86
-     * @return callable
86
+     * @return \Closure
87 87
      */
88 88
     public function onSessionReadEvent()
89 89
     {
Please login to merge, or discard this patch.
PHPDaemon/Utils/func.php 1 patch
Doc Comments   +8 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
      * @param string $haystack
16 16
      * @param mixed $needle
17 17
      * @param int $offset
18
-     * @return bool|int
18
+     * @return integer
19 19
      */
20 20
     function mb_orig_strpos($haystack, $needle, $offset = 0)
21 21
     {
@@ -45,12 +45,19 @@  discard block
 block discarded – undo
45 45
         return serialize($m);
46 46
     }
47 47
 
48
+    /**
49
+     * @param string $m
50
+     */
48 51
     function igbinary_unserialize($m)
49 52
     {
50 53
         return unserialize($m);
51 54
     }
52 55
 }
53 56
 if (!function_exists('setTimeout')) {
57
+
58
+    /**
59
+     * @param Closure $cb
60
+     */
54 61
     function setTimeout($cb, $timeout = null, $id = null, $priority = null)
55 62
     {
56 63
         return \PHPDaemon\Core\Timer::add($cb, $timeout, $id, $priority);
Please login to merge, or discard this patch.