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

@@ 415-420 (lines=6) @@
412
		} elseif ( !$user->isAllowedAny( 'suppressrevision', 'viewsuppressed' ) ) {
413
			$bitmask = LogPage::DELETED_ACTION | LogPage::DELETED_RESTRICTED;
414
		}
415
		if ( $bitmask ) {
416
			return $db->makeList( [
417
				'rc_type != ' . RC_LOG,
418
				$db->bitAnd( 'rc_deleted', $bitmask ) . " != $bitmask",
419
			], LIST_OR );
420
		}
421
		return '';
422
	}
423