Completed
Push — logformat-fix ( 20633d )
by
unknown
10:50
created
PHPDaemon/FS/File.php 1 patch
Doc Comments   +7 added lines, -4 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 	 * Converts string of flags to integer or standard text representation
98 98
 	 * @param  string  $mode Mode
99 99
 	 * @param  boolean $text Text?
100
-	 * @return mixed
100
+	 * @return string
101 101
 	 */
102 102
 	public static function convertFlags($mode, $text = false) {
103 103
 		$plus = strpos($mode, '+') !== false;
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
 	 * @param  integer  $offset Offset
391 391
 	 * @param  callable $cb     Callback
392 392
 	 * @param  integer  $pri    Priority
393
-	 * @return boolean
393
+	 * @return string|boolean
394 394
 	 */
395 395
 	public function read($length, $offset = null, $cb = null, $pri = EIO_PRI_DEFAULT) {
396 396
 		$cb = CallbackWrapper::forceWrap($cb);
@@ -542,7 +542,10 @@  discard block
 block discarded – undo
542 542
 	 * @param  integer  &$offset
543 543
 	 * @param  integer  &$pri
544 544
 	 * @param  string   &$buf
545
-	 * @return callable
545
+	 * @param integer $offset
546
+	 * @param integer $pri
547
+	 * @param string $buf
548
+	 * @return \Closure
546 549
 	 */
547 550
 	protected function readAllGenHandler($cb, $size, &$offset, &$pri, &$buf) {
548 551
 		return function ($file, $data) use ($cb, $size, &$offset, &$pri, &$buf) {
@@ -595,7 +598,7 @@  discard block
 block discarded – undo
595 598
 	 * @param  integer  $size
596 599
 	 * @param  integer  $offset
597 600
 	 * @param  integer  $pri
598
-	 * @return callable
601
+	 * @return \Closure
599 602
 	 */
600 603
 	protected function readAllChunkedGenHandler($cb, $chunkcb, $size, &$offset, $pri) {
601 604
 		return function ($file, $data) use ($cb, $chunkcb, $size, &$offset, $pri) {
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
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 	 * @param string $haystack
11 11
 	 * @param mixed $needle
12 12
 	 * @param int $offset
13
-	 * @return bool|int
13
+	 * @return integer
14 14
 	 */
15 15
 	function mb_orig_strpos($haystack, $needle, $offset = 0)
16 16
 	{
@@ -38,11 +38,18 @@  discard block
 block discarded – undo
38 38
 		return serialize($m);
39 39
 	}
40 40
 
41
+	/**
42
+	 * @param string $m
43
+	 */
41 44
 	function igbinary_unserialize($m) {
42 45
 		return unserialize($m);
43 46
 	}
44 47
 }
45 48
 if (!function_exists('setTimeout')) {
49
+
50
+	/**
51
+	 * @param Closure $cb
52
+	 */
46 53
 	function setTimeout($cb, $timeout = null, $id = null, $priority = null) {
47 54
 		return \PHPDaemon\Core\Timer::add($cb, $timeout, $id, $priority);
48 55
 	}
Please login to merge, or discard this patch.