mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-17 17:47:13 +00:00
Correcting an issue where there are two empty lines, first with an extra space, when there is no text to display on the first line. (#29)
This commit is contained in:
@@ -207,7 +207,7 @@ class Serializer
|
||||
}
|
||||
$text = str_replace("\n", "\n{$indent} * ", $text);
|
||||
|
||||
$comment = "{$firstIndent}/**\n{$indent} * {$text}\n{$indent} *\n";
|
||||
$comment = !empty($text)? "{$firstIndent}/**\n{$indent} * {$text}\n{$indent} *\n" : "{$firstIndent}/**\n";
|
||||
|
||||
$tags = array_values($docblock->getTags());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user