From 71fdfa0fe38ef9297dab0910c96e4895547b4813 Mon Sep 17 00:00:00 2001 From: Cyperghost Date: Mon, 22 Jan 2024 11:48:08 +0100 Subject: [PATCH] Rename function --- .../system/html/input/node/HtmlInputNodeProcessor.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)) { -- 2.20.1