Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions build/gen_stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -1644,7 +1644,7 @@ private function generateRefSect1(DOMDocument $doc, string $role): DOMElement {
}

public function getMethodSynopsisDocument(): ?string {
$REFSEC1_SEPERATOR = "\n\n ";
$REFSEC1_SEPARATOR = "\n\n ";

$doc = new DOMDocument("1.0", "utf-8");
$doc->formatOutput = true;
Expand All @@ -1654,7 +1654,7 @@ public function getMethodSynopsisDocument(): ?string {

if ($this->isMethod()) {
assert($this->name instanceof MethodName);
/* Namespaces are seperated by '-', '_' must be converted to '-' too.
/* Namespaces are separated by '-', '_' must be converted to '-' too.
* Trim away the __ for magic methods */
$id = strtolower(
str_replace('\\', '-', $this->name->className->__toString())
Expand Down Expand Up @@ -1683,7 +1683,7 @@ public function getMethodSynopsisDocument(): ?string {
$refnamediv->appendChild($refpurpose);

$refnamediv->appendChild(new DOMText("\n "));
$refentry->append($refnamediv, $REFSEC1_SEPERATOR);
$refentry->append($refnamediv, $REFSEC1_SEPARATOR);

/* Creation of <refsect1 role="description"> */
$descriptionRefSec = $this->generateRefSect1($doc, 'description');
Expand All @@ -1702,16 +1702,16 @@ public function getMethodSynopsisDocument(): ?string {
$descriptionRefSec->appendChild($returnDescriptionPara);

$descriptionRefSec->appendChild(new DOMText("\n "));
$refentry->append($descriptionRefSec, $REFSEC1_SEPERATOR);
$refentry->append($descriptionRefSec, $REFSEC1_SEPARATOR);

/* Creation of <refsect1 role="parameters"> */
$parametersRefSec = $this->getParameterSection($doc);
$refentry->append($parametersRefSec, $REFSEC1_SEPERATOR);
$refentry->append($parametersRefSec, $REFSEC1_SEPARATOR);

/* Creation of <refsect1 role="returnvalues"> */
if (!$this->name->isConstructor() && !$this->name->isDestructor()) {
$returnRefSec = $this->getReturnValueSection($doc);
$refentry->append($returnRefSec, $REFSEC1_SEPERATOR);
$refentry->append($returnRefSec, $REFSEC1_SEPARATOR);
}

/* Creation of <refsect1 role="errors"> */
Expand All @@ -1731,14 +1731,14 @@ public function getMethodSynopsisDocument(): ?string {
$errorsRefSec->appendChild($errorsDescriptionPara);
$errorsRefSec->appendChild(new DOMText("\n "));

$refentry->append($errorsRefSec, $REFSEC1_SEPERATOR);
$refentry->append($errorsRefSec, $REFSEC1_SEPARATOR);

/* Creation of <refsect1 role="changelog"> */
$changelogRefSec = $this->getChangelogSection($doc);
$refentry->append($changelogRefSec, $REFSEC1_SEPERATOR);
$refentry->append($changelogRefSec, $REFSEC1_SEPARATOR);

$exampleRefSec = $this->getExampleSection($doc, $id);
$refentry->append($exampleRefSec, $REFSEC1_SEPERATOR);
$refentry->append($exampleRefSec, $REFSEC1_SEPARATOR);

/* Creation of <refsect1 role="notes"> */
$notesRefSec = $this->generateRefSect1($doc, 'notes');
Expand All @@ -1751,7 +1751,7 @@ public function getMethodSynopsisDocument(): ?string {
$noteTag->append("\n ", $noteTagSimara, "\n ");
$notesRefSec->append($noteTag, "\n ");

$refentry->append($notesRefSec, $REFSEC1_SEPERATOR);
$refentry->append($notesRefSec, $REFSEC1_SEPARATOR);

/* Creation of <refsect1 role="seealso"> */
$seeAlsoRefSec = $this->generateRefSect1($doc, 'seealso');
Expand Down
Loading