Skip to content

Commit 5413143

Browse files
committed
Added the description in endpoints
1 parent 661eae9 commit 5413143

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

util/Endpoint.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -436,12 +436,13 @@ public function getClassName(): string
436436

437437
public function renderDocParams(): string
438438
{
439-
if (!isset($this->content['params']) && empty($this->getParts())) {
440-
return '';
441-
}
442439
$space = $this->getMaxLengthBodyPartsParams();
443440

444441
$result = "\n /**\n";
442+
if (isset($this->content['documentation']['description'])) {
443+
$result .= " * {$this->content['documentation']['description']}\n";
444+
$result .= " *\n";
445+
}
445446
$result .= $this->extractPartsDescription($space);
446447
$result .= $this->extractParamsDescription($space);
447448
$result .= $this->extractBodyDescription($space);

0 commit comments

Comments
 (0)