Completed
Push — ovr-patch-1 ( fa43c2 )
by Дмитрий
05:13
created
PHPDaemon/Core/CallbackWrapper.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -81,6 +81,9 @@
 block discarded – undo
81 81
         }
82 82
     }
83 83
 
84
+    /**
85
+     * @param null|callable $cb
86
+     */
84 87
     public static function addToArray(&$arr, $cb)
85 88
     {
86 89
         if ($arr === null) {
Please login to merge, or discard this patch.
PHPDaemon/Core/ComplexJob.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
     /**
154 154
      * Sets a limit of simultaneously executing tasks
155 155
      * @param  integer $n Natural number or -1 (no limit)
156
-     * @return this
156
+     * @return ComplexJob
157 157
      */
158 158
     public function maxConcurrency($n = -1)
159 159
     {
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
     /**
231 231
      * Sets a callback which is going to be fired always when we have a room for more jobs
232 232
      * @param  callable $cb Callback
233
-     * @return this
233
+     * @return ComplexJob
234 234
      */
235 235
     public function more($cb = null)
236 236
     {
Please login to merge, or discard this patch.
PHPDaemon/Core/Daemon.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -474,6 +474,7 @@
 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)
Please login to merge, or discard this patch.
PHPDaemon/Core/Debug.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
      * Returns a proxy callback function with logging for debugging purposes
63 63
      * @param  callable $cb   Callback
64 64
      * @param  mixed    $name Data
65
-     * @return callable
65
+     * @return \Closure
66 66
      */
67 67
     public static function proxy($cb, $name = null)
68 68
     {
Please login to merge, or discard this patch.
PHPDaemon/Core/DeferredEvent.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
 
114 114
     /**
115 115
      * Reset
116
-     * @return this
116
+     * @return DeferredEvent
117 117
      */
118 118
     public function reset()
119 119
     {
Please login to merge, or discard this patch.
PHPDaemon/Core/Timer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
      * @param  integer        $timeout  Timeout
105 105
      * @param  integer|string $id       Timer ID
106 106
      * @param  integer        $priority Priority
107
-     * @return integer|string           Timer ID
107
+     * @return integer|null           Timer ID
108 108
      */
109 109
     public static function add($cb, $timeout = null, $id = null, $priority = null)
110 110
     {
Please login to merge, or discard this patch.
PHPDaemon/FS/File.php 1 patch
Doc Comments   +7 added lines, -4 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      * Converts string of flags to integer or standard text representation
101 101
      * @param  string  $mode Mode
102 102
      * @param  boolean $text Text?
103
-     * @return mixed
103
+     * @return string
104 104
      */
105 105
     public static function convertFlags($mode, $text = false)
106 106
     {
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
      * @param  integer  $offset Offset
405 405
      * @param  callable $cb     Callback
406 406
      * @param  integer  $pri    Priority
407
-     * @return boolean
407
+     * @return string|boolean
408 408
      */
409 409
     public function read($length, $offset = null, $cb = null, $pri = EIO_PRI_DEFAULT)
410 410
     {
@@ -556,7 +556,10 @@  discard block
 block discarded – undo
556 556
      * @param  integer  &$offset
557 557
      * @param  integer  &$pri
558 558
      * @param  string   &$buf
559
-     * @return callable
559
+     * @param integer $offset
560
+     * @param integer $pri
561
+     * @param string $buf
562
+     * @return \Closure
560 563
      */
561 564
     protected function readAllGenHandler($cb, $size, &$offset, &$pri, &$buf)
562 565
     {
@@ -611,7 +614,7 @@  discard block
 block discarded – undo
611 614
      * @param  integer  $size
612 615
      * @param  integer  $offset
613 616
      * @param  integer  $pri
614
-     * @return callable
617
+     * @return \Closure
615 618
      */
616 619
     protected function readAllChunkedGenHandler($cb, $chunkcb, $size, &$offset, $pri)
617 620
     {
Please login to merge, or discard this patch.
PHPDaemon/FS/FileSystem.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -436,7 +436,7 @@  discard block
 block discarded – undo
436 436
      * @param  integer  $offset  Offset
437 437
      * @param  integer  $length  Length
438 438
      * @param  integer  $pri     Priority
439
-     * @return true              Success
439
+     * @return boolean              Success
440 440
      */
441 441
     public static function sendfile($outfd, $path, $cb, $startCb = null, $offset = 0, $length = null, $pri = EIO_PRI_DEFAULT)
442 442
     {
@@ -568,10 +568,10 @@  discard block
 block discarded – undo
568 568
 
569 569
     /**
570 570
      * Generates closure tempnam handler
571
-     * @param  $dir
572
-     * @param  $prefix
573
-     * @param  $cb
574
-     * @param  $tries
571
+     * @param  string $dir
572
+     * @param  string $prefix
573
+     * @param  CallbackWrapper|null $cb
574
+     * @param  integer $tries
575 575
      */
576 576
     protected static function tempnamHandler($dir, $prefix, $cb, &$tries)
577 577
     {
Please login to merge, or discard this patch.
PHPDaemon/FS/FileWatcher.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
      * @param  string  $path	Path
55 55
      * @param  mixed   $cb		Callback
56 56
      * @param  integer $flags	Look inotify_add_watch()
57
-     * @return true
57
+     * @return boolean
58 58
      */
59 59
     public function addWatch($path, $cb, $flags = null)
60 60
     {
Please login to merge, or discard this patch.