Code Duplication    Length = 4-4 lines in 2 locations

includes/diff/DifferenceEngine.php 2 locations

@@ 836-839 (lines=4) @@
833
	 * @return bool|string
834
	 */
835
	public function generateContentDiffBody( Content $old, Content $new ) {
836
		if ( !( $old instanceof TextContent ) ) {
837
			throw new MWException( "Diff not implemented for " . get_class( $old ) . "; " .
838
				"override generateContentDiffBody to fix this." );
839
		}
840
841
		if ( !( $new instanceof TextContent ) ) {
842
			throw new MWException( "Diff not implemented for " . get_class( $new ) . "; "
@@ 841-844 (lines=4) @@
838
				"override generateContentDiffBody to fix this." );
839
		}
840
841
		if ( !( $new instanceof TextContent ) ) {
842
			throw new MWException( "Diff not implemented for " . get_class( $new ) . "; "
843
				. "override generateContentDiffBody to fix this." );
844
		}
845
846
		$otext = $old->serialize();
847
		$ntext = $new->serialize();