Code Duplication    Length = 5-10 lines in 2 locations

includes/FileDeleteForm.php 1 location

@@ 274-283 (lines=10) @@
271
				"</td>
272
			</tr>
273
			{$suppress}";
274
		if ( $wgUser->isLoggedIn() ) {
275
			$form .= "
276
			<tr>
277
				<td></td>
278
				<td class='mw-input'>" .
279
					Xml::checkLabel( wfMessage( 'watchthis' )->text(),
280
						'wpWatch', 'wpWatch', $checkWatch, [ 'tabindex' => '3' ] ) .
281
				"</td>
282
			</tr>";
283
		}
284
		$form .= "
285
			<tr>
286
				<td></td>

includes/page/Article.php 1 location

@@ 1815-1819 (lines=5) @@
1812
			Html::closeElement( 'div' );
1813
1814
		# Disallow watching if user is not logged in
1815
		if ( $user->isLoggedIn() ) {
1816
			$form .=
1817
					Xml::checkLabel( wfMessage( 'watchthis' )->text(),
1818
						'wpWatch', 'wpWatch', $checkWatch, [ 'tabindex' => '3' ] );
1819
		}
1820
1821
		$form .=
1822
				Html::openElement( 'div' ) .