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,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())) {
return $docBlock->getSummary();
} else {
return $docBlock->getSummary() . "\n\n" . $docBlock->getDescription(); return $docBlock->getSummary() . "\n\n" . $docBlock->getDescription();
} }
} }
} }
}
/** /**
* Create a Definition for a definition node * Create a Definition for a definition node