Code Duplication    Length = 4-4 lines in 2 locations

includes/EditPage.php 2 locations

@@ 2749-2752 (lines=4) @@
2746
		$wgOut->addHTML( Html::hidden( 'format', $this->contentFormat ) );
2747
		$wgOut->addHTML( Html::hidden( 'model', $this->contentModel ) );
2748
2749
		if ( $this->section == 'new' ) {
2750
			$this->showSummaryInput( true, $this->summary );
2751
			$wgOut->addHTML( $this->getSummaryPreview( true, $this->summary ) );
2752
		}
2753
2754
		$wgOut->addHTML( $this->editFormTextBeforeContent );
2755
@@ 3612-3615 (lines=4) @@
3609
		global $wgOut;
3610
		$wgOut->addHTML( "<div class='editOptions'>\n" );
3611
3612
		if ( $this->section != 'new' ) {
3613
			$this->showSummaryInput( false, $this->summary );
3614
			$wgOut->addHTML( $this->getSummaryPreview( false, $this->summary ) );
3615
		}
3616
3617
		$checkboxes = $this->getCheckboxes( $tabindex,
3618
			[ 'minor' => $this->minoredit, 'watch' => $this->watchthis ] );