Run code fixer
authorCyperghost <olaf_schmitz_1@t-online.de>
Wed, 17 Jan 2024 13:56:35 +0000 (14:56 +0100)
committerOlaf Braun <info@braun-development.de>
Thu, 7 Mar 2024 15:36:44 +0000 (16:36 +0100)
wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeProcessor.class.php

index ad98ebafd759708e00f2ec5d713051a18cbfbfcc..9203b6d2350c383b789918e917abf961bafa27ae 100644 (file)
@@ -815,8 +815,8 @@ class HtmlInputNodeProcessor extends AbstractHtmlNodeProcessor
                     //<p><a href="https://example.com">https://example.com</a><br>…</p>
                     //<p>…<br><a href="https://example.com">https://example.com</a></p>
                     if (
-                        ($nextSibling === null && $previousSibling !== null && $previousSibling->nodeName === 'br') ||
-                        ($previousSibling === null && $nextSibling !== null && $nextSibling->nodeName === 'br')
+                        ($nextSibling === null && $previousSibling !== null && $previousSibling->nodeName === 'br')
+                        || ($previousSibling === null && $nextSibling !== null && $nextSibling->nodeName === 'br')
                     ) {
                         $this->plainLinks[] = $plainLink->setIsStandalone($parent, false);
                         continue;
@@ -825,10 +825,10 @@ class HtmlInputNodeProcessor extends AbstractHtmlNodeProcessor
                     //<p>…<br><a href="https://example.com">https://example.com</a><br>…</p>
                     //<p>…<br><u><b><a href="https://example.com">https://example.com</a></b></u><br>…</p>
                     if (
-                        $previousSibling === null && $nextSibling === null ||
-                        (
-                            $previousSibling !== null && $nextSibling !== null &&
-                            $previousSibling->nodeName === 'br' && $nextSibling->nodeName === 'br'
+                        $previousSibling === null && $nextSibling === null
+                        || (
+                            $previousSibling !== null && $nextSibling !== null
+                            && $previousSibling->nodeName === 'br' && $nextSibling->nodeName === 'br'
                         )
                     ) {
                         $this->plainLinks[] = $plainLink->setIsStandalone($parent, false);
@@ -890,6 +890,7 @@ class HtmlInputNodeProcessor extends AbstractHtmlNodeProcessor
             default:
                 return true;
         }
+
         return false;
     }
 }