Code Duplication    Length = 12-12 lines in 2 locations

includes/parser/Preprocessor_DOM.php 1 location

@@ 692-703 (lines=12) @@
689
				$accum =& $stack->getAccum();
690
691
				# Re-add the old stack element if it still has unmatched opening characters remaining
692
				if ( $matchingCount < $piece->count ) {
693
					$piece->parts = [ new PPDPart ];
694
					$piece->count -= $matchingCount;
695
					# do we still qualify for any callback with remaining count?
696
					$min = $this->rules[$piece->open]['min'];
697
					if ( $piece->count >= $min ) {
698
						$stack->push( $piece );
699
						$accum =& $stack->getAccum();
700
					} else {
701
						$accum .= str_repeat( $piece->open, $piece->count );
702
					}
703
				}
704
				$flags = $stack->getFlags();
705
				extract( $flags );
706

includes/parser/Preprocessor_Hash.php 1 location

@@ 637-648 (lines=12) @@
634
				$accum =& $stack->getAccum();
635
636
				# Re-add the old stack element if it still has unmatched opening characters remaining
637
				if ( $matchingCount < $piece->count ) {
638
					$piece->parts = [ new PPDPart_Hash ];
639
					$piece->count -= $matchingCount;
640
					# do we still qualify for any callback with remaining count?
641
					$min = $this->rules[$piece->open]['min'];
642
					if ( $piece->count >= $min ) {
643
						$stack->push( $piece );
644
						$accum =& $stack->getAccum();
645
					} else {
646
						self::addLiteral( $accum, str_repeat( $piece->open, $piece->count ) );
647
					}
648
				}
649
650
				extract( $stack->getFlags() );
651