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

@@ 533-538 (lines=6) @@
530
		} elseif ( !$user->isAllowedAny( 'suppressrevision', 'viewsuppressed' ) ) {
531
			$bitmask = LogPage::DELETED_ACTION | LogPage::DELETED_RESTRICTED;
532
		}
533
		if ( $bitmask ) {
534
			return $db->makeList( [
535
				'rc_type != ' . RC_LOG,
536
				$db->bitAnd( 'rc_deleted', $bitmask ) . " != $bitmask",
537
			], LIST_OR );
538
		}
539
		return '';
540
	}
541