Code Duplication    Length = 9-9 lines in 2 locations

includes/ProtectionForm.php 1 location

@@ 543-551 (lines=9) @@
540
		}
541
		$out .= Xml::closeElement( 'fieldset' );
542
543
		if ( $user->isAllowed( 'editinterface' ) ) {
544
			$link = Linker::linkKnown(
545
				$context->msg( 'protect-dropdown' )->inContentLanguage()->getTitle(),
546
				$context->msg( 'protect-edit-reasonlist' )->escaped(),
547
				[],
548
				[ 'action' => 'edit' ]
549
			);
550
			$out .= '<p class="mw-protect-editreasons">' . $link . '</p>';
551
		}
552
553
		if ( !$this->disabled ) {
554
			$out .= Html::hidden(

includes/page/Article.php 1 location

@@ 1856-1864 (lines=9) @@
1853
			) .
1854
			Xml::closeElement( 'form' );
1855
1856
			if ( $user->isAllowed( 'editinterface' ) ) {
1857
				$link = Linker::linkKnown(
1858
					$ctx->msg( 'deletereason-dropdown' )->inContentLanguage()->getTitle(),
1859
					wfMessage( 'delete-edit-reasonlist' )->escaped(),
1860
					[],
1861
					[ 'action' => 'edit' ]
1862
				);
1863
				$form .= '<p class="mw-delete-editreasons">' . $link . '</p>';
1864
			}
1865
1866
		$outputPage->addHTML( $form );
1867