Code Duplication    Length = 9-9 lines in 2 locations

includes/specials/SpecialUndelete.php 2 locations

@@ 1298-1306 (lines=9) @@
1295
		$haveFiles = $files && $files->numRows() > 0;
1296
1297
		# Batch existence check on user and talk pages
1298
		if ( $haveRevisions ) {
1299
			$batch = new LinkBatch();
1300
			foreach ( $revisions as $row ) {
1301
				$batch->addObj( Title::makeTitleSafe( NS_USER, $row->ar_user_text ) );
1302
				$batch->addObj( Title::makeTitleSafe( NS_USER_TALK, $row->ar_user_text ) );
1303
			}
1304
			$batch->execute();
1305
			$revisions->seek( 0 );
1306
		}
1307
		if ( $haveFiles ) {
1308
			$batch = new LinkBatch();
1309
			foreach ( $files as $row ) {
@@ 1307-1315 (lines=9) @@
1304
			$batch->execute();
1305
			$revisions->seek( 0 );
1306
		}
1307
		if ( $haveFiles ) {
1308
			$batch = new LinkBatch();
1309
			foreach ( $files as $row ) {
1310
				$batch->addObj( Title::makeTitleSafe( NS_USER, $row->fa_user_text ) );
1311
				$batch->addObj( Title::makeTitleSafe( NS_USER_TALK, $row->fa_user_text ) );
1312
			}
1313
			$batch->execute();
1314
			$files->seek( 0 );
1315
		}
1316
1317
		if ( $this->mAllowed ) {
1318
			$action = $this->getPageTitle()->getLocalURL( [ 'action' => 'submit' ] );