Code Duplication    Length = 12-12 lines in 2 locations

includes/api/ApiQueryRecentChanges.php 1 location

@@ 525-536 (lines=12) @@
522
			$vals['unpatrolled'] = ChangesList::isUnpatrolled( $row, $user );
523
		}
524
525
		if ( $this->fld_loginfo && $row->rc_type == RC_LOG ) {
526
			if ( $row->rc_deleted & LogPage::DELETED_ACTION ) {
527
				$vals['actionhidden'] = true;
528
				$anyHidden = true;
529
			}
530
			if ( LogEventsList::userCanBitfield( $row->rc_deleted, LogPage::DELETED_ACTION, $user ) ) {
531
				$vals['logid'] = intval( $row->rc_logid );
532
				$vals['logtype'] = $row->rc_log_type;
533
				$vals['logaction'] = $row->rc_log_action;
534
				$vals['logparams'] = LogFormatter::newFromRow( $row )->formatParametersForApi();
535
			}
536
		}
537
538
		if ( $this->fld_tags ) {
539
			if ( $row->ts_tags ) {

includes/api/ApiQueryWatchlist.php 1 location

@@ 400-411 (lines=12) @@
397
			$vals['unpatrolled'] = ChangesList::isUnpatrolled( $row, $user );
398
		}
399
400
		if ( $this->fld_loginfo && $row->rc_type == RC_LOG ) {
401
			if ( $row->rc_deleted & LogPage::DELETED_ACTION ) {
402
				$vals['actionhidden'] = true;
403
				$anyHidden = true;
404
			}
405
			if ( LogEventsList::userCanBitfield( $row->rc_deleted, LogPage::DELETED_ACTION, $user ) ) {
406
				$vals['logid'] = intval( $row->rc_logid );
407
				$vals['logtype'] = $row->rc_log_type;
408
				$vals['logaction'] = $row->rc_log_action;
409
				$vals['logparams'] = LogFormatter::newFromRow( $row )->formatParametersForApi();
410
			}
411
		}
412
413
		if ( $anyHidden && ( $row->rc_deleted & Revision::DELETED_RESTRICTED ) ) {
414
			$vals['suppressed'] = true;