Code Duplication    Length = 14-14 lines in 2 locations

includes/parser/Preprocessor_Hash.php 2 locations

@@ 1008-1021 (lines=14) @@
1005
			} elseif ( $contextName === 'template' ) {
1006
				# Double-brace expansion
1007
				$bits = PPNode_Hash_Tree::splitRawTemplate( $contextChildren );
1008
				if ( $flags & PPFrame::NO_TEMPLATES ) {
1009
					$newIterator = $this->virtualBracketedImplode(
1010
						'{{', '|', '}}',
1011
						$bits['title'],
1012
						$bits['parts']
1013
					);
1014
				} else {
1015
					$ret = $this->parser->braceSubstitution( $bits, $this );
1016
					if ( isset( $ret['object'] ) ) {
1017
						$newIterator = $ret['object'];
1018
					} else {
1019
						$out .= $ret['text'];
1020
					}
1021
				}
1022
			} elseif ( $contextName === 'tplarg' ) {
1023
				# Triple-brace expansion
1024
				$bits = PPNode_Hash_Tree::splitRawTemplate( $contextChildren );
@@ 1025-1038 (lines=14) @@
1022
			} elseif ( $contextName === 'tplarg' ) {
1023
				# Triple-brace expansion
1024
				$bits = PPNode_Hash_Tree::splitRawTemplate( $contextChildren );
1025
				if ( $flags & PPFrame::NO_ARGS ) {
1026
					$newIterator = $this->virtualBracketedImplode(
1027
						'{{{', '|', '}}}',
1028
						$bits['title'],
1029
						$bits['parts']
1030
					);
1031
				} else {
1032
					$ret = $this->parser->argSubstitution( $bits, $this );
1033
					if ( isset( $ret['object'] ) ) {
1034
						$newIterator = $ret['object'];
1035
					} else {
1036
						$out .= $ret['text'];
1037
					}
1038
				}
1039
			} elseif ( $contextName === 'comment' ) {
1040
				# HTML-style comment
1041
				# Remove it in HTML, pre+remove and STRIP_COMMENTS modes