Code Duplication    Length = 10-10 lines in 2 locations

includes/filerepo/file/LocalFile.php 1 location

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

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.