Fix code formatting
authorMatthias Schmidt <gravatronics@live.com>
Sat, 20 Aug 2016 12:44:35 +0000 (14:44 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 20 Aug 2016 12:44:35 +0000 (14:44 +0200)
wcfsetup/install/files/lib/system/html/output/node/HtmlOutputNodeProcessor.class.php

index 4a55f39bc9bc64971249f4176219864595a236d4..b24c0de42a3c88c94614aa1194be0b7585a975d9 100644 (file)
@@ -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');