Add example on writing your own Tag and prepare for TagFactory objects

This commit is contained in:
Mike van Riel
2015-06-28 11:56:16 +02:00
parent a6ffa93e28
commit 216cf0025f
26 changed files with 246 additions and 24 deletions
+2 -1
View File
@@ -109,7 +109,8 @@ class Serializer
*/
private function getSummaryAndDescriptionTextBlock(DocBlock $docblock, $wrapLength)
{
$text = $docblock->getSummary() . "\n\n" . $docblock->getDescription();
$text = $docblock->getSummary() . ((string)$docblock->getDescription() ? "\n\n" . $docblock->getDescription()
: '');
if ($wrapLength !== null) {
$text = wordwrap($text, $wrapLength);
return $text;