1
0
Fork 0

code style

pull/315/head
jens1o 2017-02-24 13:44:10 +01:00
parent 49187c18ae
commit 3346c5c63b
1 changed files with 6 additions and 2 deletions

View File

@ -89,10 +89,14 @@ class DefinitionResolver
} else { } else {
$docBlock = $node->getAttribute('docBlock'); $docBlock = $node->getAttribute('docBlock');
if ($docBlock !== null) { if ($docBlock !== null) {
if (empty($docBlock->getDescription()->render())) { // check wether we have a description, when true, add a new paragraph
// with the description
$description = $docBlock->getDescription()->render();
if (empty(($description))) {
return $docBlock->getSummary(); return $docBlock->getSummary();
} else { } else {
return $docBlock->getSummary() . "\n\n" . $docBlock->getDescription(); return $docBlock->getSummary() . "\n\n" . $description;
} }
} }
} }