Code Duplication    Length = 11-13 lines in 2 locations

includes/specials/SpecialRevisiondelete.php 2 locations

@@ 213-225 (lines=13) @@
210
			$this->showForm();
211
		}
212
213
		if ( $user->isAllowed( 'deletedhistory' ) ) {
214
			$qc = $this->getLogQueryCond();
215
			# Show relevant lines from the deletion log
216
			$deleteLogPage = new LogPage( 'delete' );
217
			$output->addHTML( "<h2>" . $deleteLogPage->getName()->escaped() . "</h2>\n" );
218
			LogEventsList::showLogExtract(
219
				$output,
220
				'delete',
221
				$this->targetObj,
222
				'', /* user */
223
				[ 'lim' => 25, 'conds' => $qc, 'useMaster' => $this->wasSaved ]
224
			);
225
		}
226
		# Show relevant lines from the suppression log
227
		if ( $user->isAllowed( 'suppressionlog' ) ) {
228
			$suppressLogPage = new LogPage( 'suppress' );
@@ 227-237 (lines=11) @@
224
			);
225
		}
226
		# Show relevant lines from the suppression log
227
		if ( $user->isAllowed( 'suppressionlog' ) ) {
228
			$suppressLogPage = new LogPage( 'suppress' );
229
			$output->addHTML( "<h2>" . $suppressLogPage->getName()->escaped() . "</h2>\n" );
230
			LogEventsList::showLogExtract(
231
				$output,
232
				'suppress',
233
				$this->targetObj,
234
				'',
235
				[ 'lim' => 25, 'conds' => $qc, 'useMaster' => $this->wasSaved ]
236
			);
237
		}
238
	}
239
240
	/**