1
0
Fork 0

only insert newlines when there actually is a description

pull/315/head
Jens Hausdorf 2017-02-24 13:18:17 +01:00 committed by GitHub
parent ebcfcd978d
commit 49187c18ae
1 changed files with 5 additions and 1 deletions

View File

@ -89,7 +89,11 @@ class DefinitionResolver
} else { } else {
$docBlock = $node->getAttribute('docBlock'); $docBlock = $node->getAttribute('docBlock');
if ($docBlock !== null) { if ($docBlock !== null) {
return $docBlock->getSummary() . "\n\n" . $docBlock->getDescription(); if (empty($docBlock->getDescription()->render())) {
return $docBlock->getSummary();
} else {
return $docBlock->getSummary() . "\n\n" . $docBlock->getDescription();
}
} }
} }
} }