code style
parent
49187c18ae
commit
3346c5c63b
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue