Completed
Push — master ( cfbe02...4dcf35 )
by Vasily
03:08
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/Core/ShellCommand.php 1 patch
Doc Comments   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
      * @param  string $binPath Optional. Binpath
113 113
      * @param  array $args Optional. Arguments
114 114
      * @param  array $env Optional. Hash of environment's variables
115
-     * @return this
115
+     * @return ShellCommand
116 116
      */
117 117
     public function execute($binPath = null, $args = null, $env = null)
118 118
     {
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
 
260 260
     /**
261 261
      * Set group
262
-     * @return this
262
+     * @return ShellCommand
263 263
      */
264 264
     public function setGroup($val)
265 265
     {
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
     /**
271 271
      * Set cwd
272 272
      * @param  string $dir
273
-     * @return this
273
+     * @return ShellCommand
274 274
      */
275 275
     public function setCwd($dir)
276 276
     {
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
     /**
282 282
      * Set group
283 283
      * @param  string $val
284
-     * @return this
284
+     * @return ShellCommand
285 285
      */
286 286
     public function setUser($val)
287 287
     {
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
     /**
293 293
      * Set chroot
294 294
      * @param  string $dir
295
-     * @return this
295
+     * @return ShellCommand
296 296
      */
297 297
     public function setChroot($dir)
298 298
     {
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
     /**
304 304
      * Sets an array of arguments
305 305
      * @param  array Arguments
306
-     * @return this
306
+     * @return ShellCommand
307 307
      */
308 308
     public function setArgs($args = null)
309 309
     {
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
     /**
316 316
      * Set a hash of environment's variables
317 317
      * @param  array Hash of environment's variables
318
-     * @return this
318
+     * @return ShellCommand
319 319
      */
320 320
     public function setEnv($env = null)
321 321
     {
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
     /**
328 328
      * Set priority
329 329
      * @param  integer $nice Priority
330
-     * @return this
330
+     * @return ShellCommand
331 331
      */
332 332
     public function nice($nice = null)
333 333
     {
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
 
354 354
     /**
355 355
      * Close write stream
356
-     * @return this
356
+     * @return ShellCommand
357 357
      */
358 358
     public function closeWrite()
359 359
     {
@@ -468,7 +468,7 @@  discard block
 block discarded – undo
468 468
     /**
469 469
      * Sets callback which will be called once when got EOF
470 470
      * @param  callable $cb
471
-     * @return this
471
+     * @return ShellCommand
472 472
      */
473 473
     public function onEOF($cb = null)
474 474
     {
@@ -482,7 +482,7 @@  discard block
 block discarded – undo
482 482
 
483 483
     /**
484 484
      * Called when new data received
485
-     * @return this|null
485
+     * @return ShellCommand|null
486 486
      */
487 487
     protected function onRead()
488 488
     {
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/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/Core/EventLoop.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,6 +93,7 @@  discard block
 block discarded – undo
93 93
 
94 94
     /**
95 95
      * @param array ...$args
96
+     * @param resource $args
96 97
      * @return \EventBufferEvent
97 98
      */
98 99
     public function bufferEvent(...$args)
@@ -102,6 +103,7 @@  discard block
 block discarded – undo
102 103
 
103 104
     /**
104 105
      * @param array ...$args
106
+     * @param resource $args
105 107
      * @return mixed
106 108
      */
107 109
     public function bufferEventSsl(...$args)
@@ -119,7 +121,7 @@  discard block
 block discarded – undo
119 121
     }
120 122
 
121 123
     /**
122
-     * @param null $cb
124
+     * @param \Closure $cb
123 125
      */
124 126
     public function interrupt($cb = null)
125 127
     {
Please login to merge, or discard this patch.