Code Duplication    Length = 4-4 lines in 4 locations

includes/api/ApiQueryRecentChanges.php 2 locations

@@ 443-446 (lines=4) @@
440
441
		/* Create a new entry in the result for the title. */
442
		if ( $this->fld_title || $this->fld_ids ) {
443
			if ( $type === RC_LOG && ( $row->rc_deleted & LogPage::DELETED_ACTION ) ) {
444
				$vals['actionhidden'] = true;
445
				$anyHidden = true;
446
			}
447
			if ( $type !== RC_LOG ||
448
				LogEventsList::userCanBitfield( $row->rc_deleted, LogPage::DELETED_ACTION, $user )
449
			) {
@@ 532-535 (lines=4) @@
529
		}
530
531
		if ( $this->fld_loginfo && $row->rc_type == RC_LOG ) {
532
			if ( $row->rc_deleted & LogPage::DELETED_ACTION ) {
533
				$vals['actionhidden'] = true;
534
				$anyHidden = true;
535
			}
536
			if ( LogEventsList::userCanBitfield( $row->rc_deleted, LogPage::DELETED_ACTION, $user ) ) {
537
				$vals['logid'] = intval( $row->rc_logid );
538
				$vals['logtype'] = $row->rc_log_type;

includes/api/ApiQueryWatchlist.php 2 locations

@@ 274-277 (lines=4) @@
271
		/* Create a new entry in the result for the title. */
272
		if ( $this->fld_title || $this->fld_ids ) {
273
			// These should already have been filtered out of the query, but just in case.
274
			if ( $type === RC_LOG && ( $recentChangeInfo['rc_deleted'] & LogPage::DELETED_ACTION ) ) {
275
				$vals['actionhidden'] = true;
276
				$anyHidden = true;
277
			}
278
			if ( $type !== RC_LOG ||
279
				LogEventsList::userCanBitfield(
280
					$recentChangeInfo['rc_deleted'],
@@ 375-378 (lines=4) @@
372
		}
373
374
		if ( $this->fld_loginfo && $recentChangeInfo['rc_type'] == RC_LOG ) {
375
			if ( $recentChangeInfo['rc_deleted'] & LogPage::DELETED_ACTION ) {
376
				$vals['actionhidden'] = true;
377
				$anyHidden = true;
378
			}
379
			if ( LogEventsList::userCanBitfield(
380
				$recentChangeInfo['rc_deleted'],
381
				LogPage::DELETED_ACTION,