Code Duplication    Length = 4-4 lines in 2 locations

includes/EditPage.php 2 locations

@@ 2625-2628 (lines=4) @@
2622
		$wgOut->addHTML( Html::hidden( 'format', $this->contentFormat ) );
2623
		$wgOut->addHTML( Html::hidden( 'model', $this->contentModel ) );
2624
2625
		if ( $this->section == 'new' ) {
2626
			$this->showSummaryInput( true, $this->summary );
2627
			$wgOut->addHTML( $this->getSummaryPreview( true, $this->summary ) );
2628
		}
2629
2630
		$wgOut->addHTML( $this->editFormTextBeforeContent );
2631
@@ 3425-3428 (lines=4) @@
3422
		global $wgOut;
3423
		$wgOut->addHTML( "<div class='editOptions'>\n" );
3424
3425
		if ( $this->section != 'new' ) {
3426
			$this->showSummaryInput( false, $this->summary );
3427
			$wgOut->addHTML( $this->getSummaryPreview( false, $this->summary ) );
3428
		}
3429
3430
		$checkboxes = $this->getCheckboxes( $tabindex,
3431
			[ 'minor' => $this->minoredit, 'watch' => $this->watchthis ] );