Code Duplication    Length = 10-10 lines in 2 locations

includes/filerepo/file/LocalFile.php 1 location

@@ 2144-2153 (lines=10) @@
2141
		list( $oldRels, $deleteCurrent ) = $this->getOldRels();
2142
2143
		// Bitfields to further suppress the content
2144
		if ( $this->suppress ) {
2145
			$bitfield = 0;
2146
			// This should be 15...
2147
			$bitfield |= Revision::DELETED_TEXT;
2148
			$bitfield |= Revision::DELETED_COMMENT;
2149
			$bitfield |= Revision::DELETED_USER;
2150
			$bitfield |= Revision::DELETED_RESTRICTED;
2151
		} else {
2152
			$bitfield = 'oi_deleted';
2153
		}
2154
2155
		if ( $deleteCurrent ) {
2156
			$concat = $dbw->buildConcat( [ "img_sha1", $encExt ] );

includes/page/WikiPage.php 1 location

@@ 2906-2915 (lines=10) @@
2903
		$content = $this->getContent( Revision::RAW );
2904
2905
		// Bitfields to further suppress the content
2906
		if ( $suppress ) {
2907
			$bitfield = 0;
2908
			// This should be 15...
2909
			$bitfield |= Revision::DELETED_TEXT;
2910
			$bitfield |= Revision::DELETED_COMMENT;
2911
			$bitfield |= Revision::DELETED_USER;
2912
			$bitfield |= Revision::DELETED_RESTRICTED;
2913
		} else {
2914
			$bitfield = 'rev_deleted';
2915
		}
2916
2917
		/**
2918
		 * For now, shunt the revision data into the archive table.