Code Duplication    Length = 10-10 lines in 2 locations

includes/page/WikiPage.php 1 location

@@ 2836-2845 (lines=10) @@
2833
		$content = $this->getContent( Revision::RAW );
2834
2835
		// Bitfields to further suppress the content
2836
		if ( $suppress ) {
2837
			$bitfield = 0;
2838
			// This should be 15...
2839
			$bitfield |= Revision::DELETED_TEXT;
2840
			$bitfield |= Revision::DELETED_COMMENT;
2841
			$bitfield |= Revision::DELETED_USER;
2842
			$bitfield |= Revision::DELETED_RESTRICTED;
2843
		} else {
2844
			$bitfield = 'rev_deleted';
2845
		}
2846
2847
		/**
2848
		 * For now, shunt the revision data into the archive table.

includes/filerepo/file/LocalFile.php 1 location

@@ 2152-2161 (lines=10) @@
2149
		list( $oldRels, $deleteCurrent ) = $this->getOldRels();
2150
2151
		// Bitfields to further suppress the content
2152
		if ( $this->suppress ) {
2153
			$bitfield = 0;
2154
			// This should be 15...
2155
			$bitfield |= Revision::DELETED_TEXT;
2156
			$bitfield |= Revision::DELETED_COMMENT;
2157
			$bitfield |= Revision::DELETED_USER;
2158
			$bitfield |= Revision::DELETED_RESTRICTED;
2159
		} else {
2160
			$bitfield = 'oi_deleted';
2161
		}
2162
2163
		if ( $deleteCurrent ) {
2164
			$concat = $dbw->buildConcat( [ "img_sha1", $encExt ] );