Completed
Pull Request — master (#220)
by
unknown
05:12
created
PHPDaemon/FS/File.php 1 patch
Doc Comments   +6 added lines, -3 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;
@@ -540,7 +540,10 @@  discard block
 block discarded – undo
540 540
 	 * @param  integer  &$offset
541 541
 	 * @param  integer  &$pri
542 542
 	 * @param  string   &$buf
543
-	 * @return callable
543
+	 * @param integer $offset
544
+	 * @param integer $pri
545
+	 * @param string $buf
546
+	 * @return \Closure
544 547
 	 */
545 548
 	protected function readAllGenHandler($cb, $size, &$offset, &$pri, &$buf) {
546 549
 		return function ($file, $data) use ($cb, $size, &$offset, &$pri, &$buf) {
@@ -593,7 +596,7 @@  discard block
 block discarded – undo
593 596
 	 * @param  integer  $size
594 597
 	 * @param  integer  $offset
595 598
 	 * @param  integer  $pri
596
-	 * @return callable
599
+	 * @return \Closure
597 600
 	 */
598 601
 	protected function readAllChunkedGenHandler($cb, $chunkcb, $size, &$offset, $pri) {
599 602
 		return function ($file, $data) use ($cb, $chunkcb, $size, &$offset, $pri) {
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
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
 	 * @param  integer  $offset  Offset
417 417
 	 * @param  integer  $length  Length
418 418
 	 * @param  integer  $pri     Priority
419
-	 * @return true              Success
419
+	 * @return boolean              Success
420 420
 	 */
421 421
 	public static function sendfile($outfd, $path, $cb, $startCb = null, $offset = 0, $length = null, $pri = EIO_PRI_DEFAULT) {
422 422
 		$cb = CallbackWrapper::forceWrap($cb);
@@ -542,10 +542,10 @@  discard block
 block discarded – undo
542 542
 
543 543
 	/**
544 544
 	 * Generates closure tempnam handler
545
-	 * @param  $dir
546
-	 * @param  $prefix
547
-	 * @param  $cb
548
-	 * @param  $tries
545
+	 * @param  string $dir
546
+	 * @param  string $prefix
547
+	 * @param  CallbackWrapper|null $cb
548
+	 * @param  integer $tries
549 549
 	 */
550 550
 	protected static function tempnamHandler($dir, $prefix, $cb, &$tries) {
551 551
 		$cb = CallbackWrapper::forceWrap($cb);
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
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 	 * @param  string  $path	Path
54 54
 	 * @param  mixed   $cb		Callback
55 55
 	 * @param  integer $flags	Look inotify_add_watch()
56
-	 * @return true
56
+	 * @return boolean
57 57
 	 */
58 58
 	public function addWatch($path, $cb, $flags = null) {
59 59
 		$path = realpath($path);
Please login to merge, or discard this patch.
PHPDaemon/Network/Pool.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@
 block discarded – undo
154 154
 	 * Returns instance object
155 155
 	 * @param  string  $arg   name / array config / ConfigSection
156 156
 	 * @param  boolean $spawn Spawn? Default is true
157
-	 * @return this
157
+	 * @return Pool
158 158
 	 */
159 159
 	public static function getInstance($arg = '', $spawn = true) {
160 160
 		if ($arg === 'default') {
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
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 	/**
44 44
 	 * Sets onActivation callback
45 45
 	 * @param  callable $cb Callback
46
-	 * @return this
46
+	 * @return PubSubEvent
47 47
 	 */
48 48
 	public function onActivation($cb) {
49 49
 		$this->actCb = $cb;
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 	/**
54 54
 	 * Sets onDeactivation callback
55 55
 	 * @param callable $cb Callback
56
-	 * @return this
56
+	 * @return PubSubEvent
57 57
 	 */
58 58
 	public function onDeactivation($cb) {
59 59
 		$this->deactCb = $cb;
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
 	/**
64 64
 	 * Init
65
-	 * @return object
65
+	 * @return PubSubEvent
66 66
 	 */
67 67
 	public static function init() {
68 68
 		return new static;
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 	 * Subscribe
73 73
 	 * @param  object   $obj Subcriber object
74 74
 	 * @param  callable $cb  Callback
75
-	 * @return this
75
+	 * @return PubSubEvent
76 76
 	 */
77 77
 	public function sub($obj, $cb) {
78 78
 		$act = $this->count() === 0;
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 	/**
89 89
 	 * Unsubscripe
90 90
 	 * @param  object $obj Subscriber object
91
-	 * @return this
91
+	 * @return PubSubEvent
92 92
 	 */
93 93
 	public function unsub($obj) {
94 94
 		$this->detach($obj);
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 	/**
104 104
 	 * Publish
105 105
 	 * @param  mixed $data Data
106
-	 * @return this
106
+	 * @return PubSubEvent
107 107
 	 */
108 108
 	public function pub($data) {
109 109
 		foreach ($this as $obj) {
Please login to merge, or discard this patch.
PHPDaemon/Servers/FastCGI/Connection.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -337,7 +337,7 @@
 block discarded – undo
337 337
 
338 338
 	/**
339 339
 	 * Handles the output from downstream requests
340
-	 * @param  object $req
340
+	 * @param  \stdClass $req
341 341
 	 * @param  string $appStatus
342 342
 	 * @param  string $protoStatus
343 343
 	 * @return void
Please login to merge, or discard this patch.
PHPDaemon/Servers/HTTP/Connection.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -343,6 +343,9 @@
 block discarded – undo
343 343
 
344 344
 	/**
345 345
 	 * End request
346
+	 * @param \stdClass $req
347
+	 * @param integer $appStatus
348
+	 * @param integer $protoStatus
346 349
 	 * @return void
347 350
 	 */
348 351
 	public function endRequest($req, $appStatus, $protoStatus) {
Please login to merge, or discard this patch.
PHPDaemon/SockJS/Application.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
 	 * @param  string $method   [@todo description]
372 372
 	 * @param  object $req      [@todo description]
373 373
 	 * @param  object $upstream [@todo description]
374
-	 * @return object
374
+	 * @return string
375 375
 	 */
376 376
 	public function callMethod($method, $req, $upstream) {
377 377
 		$method = strtr(ucwords(strtr($method, ['_' => ' '])), [' ' => '']);
Please login to merge, or discard this patch.
PHPDaemon/SockJS/Session.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 	 * __construct
82 82
 	 * @param Application $appInstance [@todo description]
83 83
 	 * @param string      $id          [@todo description]
84
-	 * @param array       $server      [@todo description]
84
+	 * @param string       $server      [@todo description]
85 85
 	 * @return void
86 86
 	 */
87 87
 	public function __construct($appInstance, $id, $server) {
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
 
316 316
 	/**
317 317
 	 * sendPacket
318
-	 * @param  object   $pct [@todo description]
318
+	 * @param  string   $pct [@todo description]
319 319
 	 * @param  callable $cb  [@todo description]
320 320
 	 * @callback $cb ( )
321 321
 	 * @return void
Please login to merge, or discard this patch.