Skip to content

Commit

Permalink
[skip ci] gen_stub: Use simpara by default instead of para tags for d…
Browse files Browse the repository at this point in the history
…ocumentation
  • Loading branch information
Girgias committed Oct 22, 2024
1 parent e05b56f commit 32789c0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions build/gen_stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -1686,7 +1686,7 @@ public function getMethodSynopsisDocument(array $funcMap, array $aliasMap): ?str
$undocumentedEntity = $doc->createEntityReference('warn.undocumented.func');
$descriptionRefSec->appendChild($undocumentedEntity);
$descriptionRefSec->appendChild(new DOMText("\n "));
$returnDescriptionPara = $doc->createElement('para');
$returnDescriptionPara = $doc->createElement('simpara');
$returnDescriptionPara->appendChild(new DOMText("\n Description.\n "));
$descriptionRefSec->appendChild($returnDescriptionPara);

Expand All @@ -1709,7 +1709,7 @@ public function getMethodSynopsisDocument(array $funcMap, array $aliasMap): ?str
$errorsDescriptionParaConstantTag->append('E_*');
$errorsDescriptionParaExceptionTag = $doc->createElement('exceptionname');
$errorsDescriptionParaExceptionTag->append('Exception');
$errorsDescriptionPara = $doc->createElement('para');
$errorsDescriptionPara = $doc->createElement('simpara');
$errorsDescriptionPara->append(
"\n When does this function issue ",
$errorsDescriptionParaConstantTag,
Expand Down Expand Up @@ -1813,7 +1813,7 @@ private function getParameterSection(DOMDocument $doc): DOMElement {
$parametersRefSec->appendChild($noParamEntity);
return $parametersRefSec;
} else {
$parametersPara = $doc->createElement('para');
$parametersPara = $doc->createElement('simpara');
$parametersRefSec->appendChild($parametersPara);

$parametersPara->appendChild(new DOMText("\n "));
Expand All @@ -1824,9 +1824,9 @@ private function getParameterSection(DOMDocument $doc): DOMElement {
<varlistentry>
<term><parameter>name</parameter></term>
<listitem>
<para>
<simpara>
Description.
</para>
</simpara>
</listitem>
</varlistentry>
*/
Expand All @@ -1835,7 +1835,7 @@ private function getParameterSection(DOMDocument $doc): DOMElement {
$parameterTerm = $doc->createElement('term');
$parameterTerm->appendChild($parameter);

$listItemPara = $doc->createElement('para');
$listItemPara = $doc->createElement('simpara');
$listItemPara->append(
"\n ",
"Description.",
Expand Down Expand Up @@ -1871,7 +1871,7 @@ private function getParameterSection(DOMDocument $doc): DOMElement {
private function getReturnValueSection(DOMDocument $doc): DOMElement {
$returnRefSec = $this->generateRefSect1($doc, 'returnvalues');

$returnDescriptionPara = $doc->createElement('para');
$returnDescriptionPara = $doc->createElement('simpara');
$returnDescriptionPara->appendChild(new DOMText("\n "));

$returnType = $this->return->getMethodSynopsisType();
Expand Down Expand Up @@ -2010,7 +2010,7 @@ private function getExampleSection(DOMDocument $doc, string $id): DOMElement {

$example->append("\n ", $title);

$para = $doc->createElement('para');
$para = $doc->createElement('simpara');
$para->append("\n ", "Description.", "\n ");
$example->append("\n ", $para);

Expand Down

0 comments on commit 32789c0

Please sign in to comment.