Code Duplication    Length = 13-14 lines in 2 locations

includes/EditPage.php 2 locations

@@ 2795-2808 (lines=14) @@
2792
2793
		$wgOut->addModules( 'mediawiki.action.edit.collapsibleFooter' );
2794
2795
		if ( $this->isConflict ) {
2796
			try {
2797
				$this->showConflict();
2798
			} catch ( MWContentSerializationException $ex ) {
2799
				// this can't really happen, but be nice if it does.
2800
				$msg = $this->context->msg(
2801
					'content-failed-to-parse',
2802
					$this->contentModel,
2803
					$this->contentFormat,
2804
					$ex->getMessage()
2805
				);
2806
				$wgOut->addWikiText( '<div class="error">' . $msg->text() . '</div>' );
2807
			}
2808
		}
2809
2810
		// Set a hidden field so JS knows what edit form mode we are in
2811
		if ( $this->isConflict ) {
@@ 3379-3391 (lines=13) @@
3376
3377
		$wgOut->addHTML( '</div>' );
3378
3379
		if ( $this->formtype == 'diff' ) {
3380
			try {
3381
				$this->showDiff();
3382
			} catch ( MWContentSerializationException $ex ) {
3383
				$msg = $this->context->msg(
3384
					'content-failed-to-parse',
3385
					$this->contentModel,
3386
					$this->contentFormat,
3387
					$ex->getMessage()
3388
				);
3389
				$wgOut->addWikiText( '<div class="error">' . $msg->text() . '</div>' );
3390
			}
3391
		}
3392
	}
3393
3394
	/**