Code Duplication    Length = 7-7 lines in 2 locations

includes/api/ApiQueryDeletedrevs.php 1 location

@@ 363-369 (lines=7) @@
360
					$rev['sha1hidden'] = true;
361
					$anyHidden = true;
362
				}
363
				if ( Revision::userCanBitfield( $row->ar_deleted, Revision::DELETED_TEXT, $user ) ) {
364
					if ( $row->ar_sha1 != '' ) {
365
						$rev['sha1'] = Wikimedia\base_convert( $row->ar_sha1, 36, 16, 40 );
366
					} else {
367
						$rev['sha1'] = '';
368
					}
369
				}
370
			}
371
			if ( $fld_content ) {
372
				if ( $row->ar_deleted & Revision::DELETED_TEXT ) {

includes/api/ApiQueryRecentChanges.php 1 location

@@ 559-565 (lines=7) @@
556
				$vals['sha1hidden'] = true;
557
				$anyHidden = true;
558
			}
559
			if ( Revision::userCanBitfield( $row->rev_deleted, Revision::DELETED_TEXT, $user ) ) {
560
				if ( $row->rev_sha1 !== '' ) {
561
					$vals['sha1'] = Wikimedia\base_convert( $row->rev_sha1, 36, 16, 40 );
562
				} else {
563
					$vals['sha1'] = '';
564
				}
565
			}
566
		}
567
568
		if ( !is_null( $this->token ) ) {