Code Duplication    Length = 10-10 lines in 2 locations

includes/page/WikiPage.php 1 location

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

includes/filerepo/file/LocalFile.php 1 location

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