Skip to content

Commit 763f26e

Browse files
TomasVotrubajaapio
authored andcommitted
fix extra space after tag removal
1 parent bdcc0cf commit 763f26e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/DocBlock/Serializer.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,11 @@ public function getDocComment(DocBlock $docblock)
8181
)
8282
);
8383

84-
$comment = "{$firstIndent}/**\n{$indent} * {$text}\n{$indent} *\n";
84+
$comment = "{$firstIndent}/**\n";
85+
if ($text) {
86+
$comment .= "{$indent} * {$text}\n";
87+
$comment .= "{$indent} *\n";
88+
}
8589
$comment = $this->addTagBlock($docblock, $wrapLength, $indent, $comment);
8690
$comment .= $indent . ' */';
8791

0 commit comments

Comments
 (0)