Code Duplication    Length = 6-6 lines in 2 locations

includes/parser/Preprocessor_DOM.php 1 location

@@ 709-714 (lines=6) @@
706
707
				# Add XML element to the enclosing accumulator
708
				$accum .= $element;
709
			} elseif ( $found == 'pipe' ) {
710
				$findEquals = true; // shortcut for getFlags()
711
				$stack->addPart();
712
				$accum =& $stack->getAccum();
713
				++$i;
714
			} elseif ( $found == 'equals' ) {
715
				$findEquals = false; // shortcut for getFlags()
716
				$stack->getCurrentPart()->eqpos = strlen( $accum );
717
				$accum .= '=';

includes/parser/Preprocessor_Hash.php 1 location

@@ 654-659 (lines=6) @@
651
652
				# Add XML element to the enclosing accumulator
653
				array_splice( $accum, count( $accum ), 0, $element );
654
			} elseif ( $found == 'pipe' ) {
655
				$findEquals = true; // shortcut for getFlags()
656
				$stack->addPart();
657
				$accum =& $stack->getAccum();
658
				++$i;
659
			} elseif ( $found == 'equals' ) {
660
				$findEquals = false; // shortcut for getFlags()
661
				$accum[] = [ 'equals', [ '=' ] ];
662
				$stack->getCurrentPart()->eqpos = count( $accum ) - 1;