Completed
Push — http-client-refactoring ( f253a2 )
by Vasily
04:08
created
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/Binary.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -226,6 +226,7 @@  discard block
 block discarded – undo
226 226
      * Parse quadro word (8 bytes)
227 227
      * @param  string  &$p Data
228 228
      * @param  boolean $l  Little endian?
229
+     * @param string|false $p
229 230
      * @return integer
230 231
      */
231 232
     public static function getQword(&$p, $l = false)
@@ -382,7 +383,7 @@  discard block
 block discarded – undo
382 383
     /**
383 384
      * Convert bytes into integer
384 385
      * @alias Binary::bytes2int
385
-     * @param  string  $str Bytes
386
+     * @param  integer  $str Bytes
386 387
      * @param  boolean $l   Little endian? Default is false
387 388
      * @return integer
388 389
      */
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
@@ -338,7 +338,6 @@  discard block
 block discarded – undo
338 338
     
339 339
     /**
340 340
      * Normalize encoding name
341
-     * @param  string $str Encoding name
342 341
      * @return string
343 342
      */
344 343
     public static function normalizeEncoding($encodingLabel)
@@ -366,7 +365,6 @@  discard block
 block discarded – undo
366 365
 
367 366
     /**
368 367
      * Encode
369
-     * @param  string $str Any string
370 368
      * @return string
371 369
      */
372 370
     public static function encode($encodingLabel, $text)
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.
PHPDaemon/Utils/IRC.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
 
109 109
     /**
110 110
      * @param  string  $cmd Command
111
-     * @return integer
111
+     * @return string
112 112
      */
113 113
     public static function getCodeByCommand($cmd)
114 114
     {
Please login to merge, or discard this patch.
PHPDaemon/Cache/CappedStorage.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
 
109 109
     /**
110 110
      * @param  string  $cmd Command
111
-     * @return integer
111
+     * @return string
112 112
      */
113 113
     public static function getCodeByCommand($cmd)
114 114
     {
Please login to merge, or discard this patch.
PHPDaemon/Core/Daemon.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -474,6 +474,7 @@  discard block
 block discarded – undo
474 474
     /**
475 475
      * Check file syntax via runkit_lint_file if supported or via php -l
476 476
      * @param string File name
477
+     * @param string $filename
477 478
      * @return boolean
478 479
      */
479 480
     public static function lintFile($filename)
@@ -672,6 +673,7 @@  discard block
 block discarded – undo
672 673
      *  Send message to the log
673 674
      *
674 675
      * @param array ...$args
676
+     * @param string $args
675 677
      */
676 678
     public static function log(...$args)
677 679
     {
Please login to merge, or discard this patch.