Code Duplication    Length = 6-6 lines in 2 locations

includes/specials/SpecialWatchlist.php 1 location

@@ 271-276 (lines=6) @@
268
		} else {
269
			$bitmask = 0;
270
		}
271
		if ( $bitmask ) {
272
			$conds[] = $dbr->makeList( [
273
				'rc_type != ' . RC_LOG,
274
				$dbr->bitAnd( 'rc_deleted', $bitmask ) . " != $bitmask",
275
			], LIST_OR );
276
		}
277
278
		ChangeTags::modifyDisplayQuery(
279
			$tables,

includes/WatchedItemQueryService.php 1 location

@@ 491-496 (lines=6) @@
488
		} elseif ( !$user->isAllowedAny( 'suppressrevision', 'viewsuppressed' ) ) {
489
			$bitmask = LogPage::DELETED_ACTION | LogPage::DELETED_RESTRICTED;
490
		}
491
		if ( $bitmask ) {
492
			return $db->makeList( [
493
				'rc_type != ' . RC_LOG,
494
				$db->bitAnd( 'rc_deleted', $bitmask ) . " != $bitmask",
495
			], LIST_OR );
496
		}
497
		return '';
498
	}
499