Code Duplication    Length = 7-7 lines in 2 locations

includes/parser/Preprocessor_DOM.php 1 location

@@ 1080-1086 (lines=7) @@
1077
			return $root;
1078
		}
1079
1080
		if ( ++$this->parser->mPPNodeCount > $this->parser->mOptions->getMaxPPNodeCount() ) {
1081
			$this->parser->limitationWarn( 'node-count-exceeded',
1082
				$this->parser->mPPNodeCount,
1083
				$this->parser->mOptions->getMaxPPNodeCount()
1084
			);
1085
			return '<span class="error">Node-count limit exceeded</span>';
1086
		}
1087
1088
		if ( $expansionDepth > $this->parser->mOptions->getMaxPPExpandDepth() ) {
1089
			$this->parser->limitationWarn( 'expansion-depth-exceeded',

includes/parser/Preprocessor_Hash.php 1 location

@@ 918-924 (lines=7) @@
915
			return $root;
916
		}
917
918
		if ( ++$this->parser->mPPNodeCount > $this->parser->mOptions->getMaxPPNodeCount() ) {
919
			$this->parser->limitationWarn( 'node-count-exceeded',
920
					$this->parser->mPPNodeCount,
921
					$this->parser->mOptions->getMaxPPNodeCount()
922
			);
923
			return '<span class="error">Node-count limit exceeded</span>';
924
		}
925
		if ( $expansionDepth > $this->parser->mOptions->getMaxPPExpandDepth() ) {
926
			$this->parser->limitationWarn( 'expansion-depth-exceeded',
927
					$expansionDepth,