From 661265255f7557b4a11f60e199e1c4756fe224ff Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Sat, 20 Aug 2016 14:44:35 +0200 Subject: [PATCH] Fix code formatting --- .../html/output/node/HtmlOutputNodeProcessor.class.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeProcessor.class.php b/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeProcessor.class.php index 4a55f39bc9..b24c0de42a 100644 --- a/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeProcessor.class.php +++ b/wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeProcessor.class.php @@ -186,10 +186,12 @@ class HtmlOutputNodeProcessor extends AbstractHtmlNodeProcessor { if ($count == 1) return; for ($i = 0; $i < $count; $i++) { - if ($i % 2 == 0) { // text + // text + if ($i % 2 == 0) { $node->parentNode->insertBefore($node->ownerDocument->createTextNode($split[$i]), $node); } - else { // match + // match + else { /** @var \DOMElement $element */ $element = $node->ownerDocument->createElement('span'); $element->setAttribute('class', 'highlight'); -- 2.20.1