Code Duplication    Length = 7-7 lines in 2 locations

languages/LanguageConverter.php 1 location

@@ 710-716 (lines=7) @@
707
					// Check max depth
708
					if ( $depth >= $this->mMaxDepth ) {
709
						$inner .= '-{';
710
						if ( !$warningDone ) {
711
							$inner .= '<span class="error">' .
712
								wfMessage( 'language-converter-depth-warning' )
713
									->numParams( $this->mMaxDepth )->inContentLanguage()->text() .
714
								'</span>';
715
							$warningDone = true;
716
						}
717
						$startPos += 2;
718
						continue;
719
					}

includes/parser/Parser.php 1 location

@@ 3135-3141 (lines=7) @@
3132
				}
3133
				# Do recursion depth check
3134
				$limit = $this->mOptions->getMaxTemplateDepth();
3135
				if ( $frame->depth >= $limit ) {
3136
					$found = true;
3137
					$text = '<span class="error">'
3138
						. wfMessage( 'parser-template-recursion-depth-warning' )
3139
							->numParams( $limit )->inContentLanguage()->text()
3140
						. '</span>';
3141
				}
3142
			}
3143
		}
3144