Completed
Push — master ( cfcdd7...da71f2 )
by Vasily
02:36
created
PHPDaemon/SockJS/WebSocketRouteProxy.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,6 @@  discard block
 block discarded – undo
21 21
     /**
22 22
      * __construct
23 23
      * @param Application $sockjs
24
-     * @param object $conn
25 24
      */
26 25
     public function __construct($sockjs, $route)
27 26
     {
@@ -76,7 +75,6 @@  discard block
 block discarded – undo
76 75
 
77 76
     /**
78 77
      * onPacket
79
-     * @param string $data Frame's contents.
80 78
      * @param integer $type Frame's type.
81 79
      * @return void
82 80
      */
Please login to merge, or discard this patch.
PHPDaemon/Utils/Binary.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -227,6 +227,7 @@  discard block
 block discarded – undo
227 227
      * Parse quadro word (8 bytes)
228 228
      * @param  string &$p Data
229 229
      * @param  boolean $l Little endian?
230
+     * @param string|false $p
230 231
      * @return integer
231 232
      */
232 233
     public static function getQword(&$p, $l = false)
@@ -385,7 +386,7 @@  discard block
 block discarded – undo
385 386
     /**
386 387
      * Convert bytes into integer
387 388
      * @alias Binary::bytes2int
388
-     * @param  string $str Bytes
389
+     * @param  integer $str Bytes
389 390
      * @param  boolean $l Little endian? Default is false
390 391
      * @return integer
391 392
      */
Please login to merge, or discard this patch.
PHPDaemon/Clients/Gearman/Connection.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
     /**
182 182
      * Send a command
183 183
      *
184
-     * @param $commandName
184
+     * @param string $commandName
185 185
      * @param $payload
186 186
      * @param callable $cb = null
187 187
      */
@@ -211,7 +211,6 @@  discard block
 block discarded – undo
211 211
      *
212 212
      * @param $params
213 213
      * @param callable $cb = null
214
-     * @param boolean $unique
215 214
      */
216 215
     public function submitJob($params, $cb = null)
217 216
     {
Please login to merge, or discard this patch.
PHPDaemon/DNode/DNode.php 1 patch
Doc Comments   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     /**
77 77
      * Encodes value into JSON for debugging purposes
78 78
      * @param mixed $m Data
79
-     * @return void
79
+     * @return string
80 80
      */
81 81
     public static function toJsonDebug($m)
82 82
     {
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
      * Calls a remote method
148 148
      * @param  string $method Method name
149 149
      * @param  mixed ...$args Arguments
150
-     * @return this
150
+     * @return DNode
151 151
      */
152 152
     public function callRemote($method, ...$args)
153 153
     {
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
      * Calls a remote method with array of arguments
160 160
      * @param  string $method Method name
161 161
      * @param  array $args Arguments
162
-     * @return this
162
+     * @return DNode
163 163
      */
164 164
     public function callRemoteArray($method, $args)
165 165
     {
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
     /**
247 247
      * Encodes value into JSON
248 248
      * @param  mixed $m Value
249
-     * @return this
249
+     * @return string
250 250
      */
251 251
     public static function toJson($m)
252 252
     {
@@ -255,9 +255,8 @@  discard block
 block discarded – undo
255 255
 
256 256
     /**
257 257
      * Calls a local method
258
-     * @param  string $method Method name
259 258
      * @param  mixed ...$args Arguments
260
-     * @return this
259
+     * @return DNode
261 260
      */
262 261
     public function callLocal(...$args)
263 262
     {
Please login to merge, or discard this patch.
PHPDaemon/PubSub/PubSubEvent.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
     /**
46 46
      * Init
47
-     * @return object
47
+     * @return PubSubEvent
48 48
      */
49 49
     public static function init()
50 50
     {
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     /**
55 55
      * Sets onActivation callback
56 56
      * @param  callable $cb Callback
57
-     * @return this
57
+     * @return PubSubEvent
58 58
      */
59 59
     public function onActivation($cb)
60 60
     {
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     /**
66 66
      * Sets onDeactivation callback
67 67
      * @param callable $cb Callback
68
-     * @return this
68
+     * @return PubSubEvent
69 69
      */
70 70
     public function onDeactivation($cb)
71 71
     {
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      * Subscribe
78 78
      * @param  object $obj Subcriber object
79 79
      * @param  callable $cb Callback
80
-     * @return this
80
+     * @return PubSubEvent
81 81
      */
82 82
     public function sub($obj, $cb)
83 83
     {
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     /**
95 95
      * Unsubscripe
96 96
      * @param  object $obj Subscriber object
97
-     * @return this
97
+     * @return PubSubEvent
98 98
      */
99 99
     public function unsub($obj)
100 100
     {
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
     /**
111 111
      * Publish
112 112
      * @param  mixed $data Data
113
-     * @return this
113
+     * @return PubSubEvent
114 114
      */
115 115
     public function pub($data)
116 116
     {
Please login to merge, or discard this patch.
PHPDaemon/Utils/Encoding.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -334,7 +334,6 @@  discard block
 block discarded – undo
334 334
 
335 335
     /**
336 336
      * Encode
337
-     * @param  string $str Any string
338 337
      * @return string
339 338
      */
340 339
     public static function encode($encodingLabel, $text)
@@ -350,7 +349,6 @@  discard block
 block discarded – undo
350 349
 
351 350
     /**
352 351
      * Normalize encoding name
353
-     * @param  string $str Encoding name
354 352
      * @return string
355 353
      */
356 354
     public static function normalizeEncoding($encodingLabel)
Please login to merge, or discard this patch.
PHPDaemon/Core/EventLoop.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,6 +103,7 @@  discard block
 block discarded – undo
103 103
 
104 104
     /**
105 105
      * @param array ...$args
106
+     * @param resource $args
106 107
      * @return mixed
107 108
      */
108 109
     public function bufferEventSsl(...$args)
@@ -120,7 +121,7 @@  discard block
 block discarded – undo
120 121
     }
121 122
 
122 123
     /**
123
-     * @param null $cb
124
+     * @param \Closure $cb
124 125
      */
125 126
     public function interrupt($cb = null)
126 127
     {
Please login to merge, or discard this patch.
PHPDaemon/Utils/DateTime.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@
 block discarded – undo
26 26
     /**
27 27
      * Calculates a difference between two dates
28 28
      * @see http://www.php.net/manual/en/datetime.diff.php
29
-     * @param  integer|string|\DateTimeInterface $datetime1
30
-     * @param  integer|string|\DateTimeInterface $datetime2
29
+     * @param  integer $datetime1
30
+     * @param  integer $datetime2
31 31
      * @param  boolean $absolute
32 32
      * @return string Something like this: 1 year. 2 mon. 6 day. 4 hours. 21 min. 10 sec.
33 33
      */
Please login to merge, or discard this patch.
PHPDaemon/Utils/func.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -45,12 +45,19 @@
 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.