mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 01:57:13 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d103774cbe | ||
|
|
5a3e22c213 |
@@ -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());
|
||||
|
||||
|
||||
@@ -409,6 +409,6 @@ class Tag implements \Reflector
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
return "@{$this->getName()} {$this->getContent()}";
|
||||
return trim("@{$this->getName()} {$this->getContent()}");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user