Code Duplication    Length = 11-13 lines in 2 locations

includes/revisiondelete/RevDelArchivedRevisionItem.php 1 location

@@ 42-52 (lines=11) @@
39
		return $this->revision->getId();
40
	}
41
42
	public function setBits( $bits ) {
43
		$dbw = wfGetDB( DB_MASTER );
44
		$dbw->update( 'archive',
45
			[ 'ar_deleted' => $bits ],
46
			[ 'ar_rev_id' => $this->row->ar_rev_id,
47
				'ar_deleted' => $this->getBits()
48
			],
49
			__METHOD__ );
50
51
		return (bool)$dbw->affectedRows();
52
	}
53
}
54

includes/revisiondelete/RevDelArchivedFileItem.php 1 location

@@ 57-69 (lines=13) @@
54
		return $this->row->fa_id;
55
	}
56
57
	public function setBits( $bits ) {
58
		$dbw = wfGetDB( DB_MASTER );
59
		$dbw->update( 'filearchive',
60
			[ 'fa_deleted' => $bits ],
61
			[
62
				'fa_id' => $this->row->fa_id,
63
				'fa_deleted' => $this->getBits(),
64
			],
65
			__METHOD__
66
		);
67
68
		return (bool)$dbw->affectedRows();
69
	}
70
71
	protected function getLink() {
72
		$date = htmlspecialchars( $this->list->getLanguage()->userTimeAndDate(