Code Duplication    Length = 4-4 lines in 2 locations

includes/EditPage.php 2 locations

@@ 2669-2672 (lines=4) @@
2666
		$wgOut->addHTML( Html::hidden( 'format', $this->contentFormat ) );
2667
		$wgOut->addHTML( Html::hidden( 'model', $this->contentModel ) );
2668
2669
		if ( $this->section == 'new' ) {
2670
			$this->showSummaryInput( true, $this->summary );
2671
			$wgOut->addHTML( $this->getSummaryPreview( true, $this->summary ) );
2672
		}
2673
2674
		$wgOut->addHTML( $this->editFormTextBeforeContent );
2675
@@ 3458-3461 (lines=4) @@
3455
		global $wgOut;
3456
		$wgOut->addHTML( "<div class='editOptions'>\n" );
3457
3458
		if ( $this->section != 'new' ) {
3459
			$this->showSummaryInput( false, $this->summary );
3460
			$wgOut->addHTML( $this->getSummaryPreview( false, $this->summary ) );
3461
		}
3462
3463
		$checkboxes = $this->getCheckboxes( $tabindex,
3464
			[ 'minor' => $this->minoredit, 'watch' => $this->watchthis ] );