From: Cyperghost Date: Mon, 22 Jan 2024 10:48:08 +0000 (+0100) Subject: Rename function X-Git-Tag: 6.0.7_dev_1~7^2~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=71fdfa0fe38ef9297dab0910c96e4895547b4813;p=GitHub%2FWoltLab%2FWCF.git Rename function --- diff --git a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeProcessor.class.php b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeProcessor.class.php index 41efb19e7a..1a23a38ff2 100644 --- a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeProcessor.class.php +++ b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeProcessor.class.php @@ -807,8 +807,8 @@ class HtmlInputNodeProcessor extends AbstractHtmlNodeProcessor } if (!$mayContainOtherContent) { - $nextSibling = $this->getNoneEmptyNode($parentLinkElement, 'nextSibling'); - $previousSibling = $this->getNoneEmptyNode($parentLinkElement, 'previousSibling'); + $nextSibling = $this->getNonEmptyNode($parentLinkElement, 'nextSibling'); + $previousSibling = $this->getNonEmptyNode($parentLinkElement, 'previousSibling'); // Check whether the link is at the beginning or end of the paragraph // and whether the next or previous sibling is a line break. @@ -849,7 +849,7 @@ class HtmlInputNodeProcessor extends AbstractHtmlNodeProcessor } } - private function getNoneEmptyNode(?\DOMNode $element, string $property): ?\DOMNode + private function getNonEmptyNode(?\DOMNode $element, string $property): ?\DOMNode { while ($element = $element->{$property}) { if (!DOMUtil::isEmpty($element)) {