Code Duplication    Length = 9-9 lines in 2 locations

includes/specials/SpecialUndelete.php 2 locations

@@ 1371-1379 (lines=9) @@
1368
		$haveFiles = $files && $files->numRows() > 0;
1369
1370
		# Batch existence check on user and talk pages
1371
		if ( $haveRevisions ) {
1372
			$batch = new LinkBatch();
1373
			foreach ( $revisions as $row ) {
1374
				$batch->addObj( Title::makeTitleSafe( NS_USER, $row->ar_user_text ) );
1375
				$batch->addObj( Title::makeTitleSafe( NS_USER_TALK, $row->ar_user_text ) );
1376
			}
1377
			$batch->execute();
1378
			$revisions->seek( 0 );
1379
		}
1380
		if ( $haveFiles ) {
1381
			$batch = new LinkBatch();
1382
			foreach ( $files as $row ) {
@@ 1380-1388 (lines=9) @@
1377
			$batch->execute();
1378
			$revisions->seek( 0 );
1379
		}
1380
		if ( $haveFiles ) {
1381
			$batch = new LinkBatch();
1382
			foreach ( $files as $row ) {
1383
				$batch->addObj( Title::makeTitleSafe( NS_USER, $row->fa_user_text ) );
1384
				$batch->addObj( Title::makeTitleSafe( NS_USER_TALK, $row->fa_user_text ) );
1385
			}
1386
			$batch->execute();
1387
			$files->seek( 0 );
1388
		}
1389
1390
		if ( $this->mAllowed ) {
1391
			$action = $this->getPageTitle()->getLocalURL( [ 'action' => 'submit' ] );