Code Duplication    Length = 4-4 lines in 2 locations

includes/diff/DifferenceEngine.php 2 locations

@@ 803-806 (lines=4) @@
800
	 * @return bool|string
801
	 */
802
	public function generateContentDiffBody( Content $old, Content $new ) {
803
		if ( !( $old instanceof TextContent ) ) {
804
			throw new MWException( "Diff not implemented for " . get_class( $old ) . "; " .
805
				"override generateContentDiffBody to fix this." );
806
		}
807
808
		if ( !( $new instanceof TextContent ) ) {
809
			throw new MWException( "Diff not implemented for " . get_class( $new ) . "; "
@@ 808-811 (lines=4) @@
805
				"override generateContentDiffBody to fix this." );
806
		}
807
808
		if ( !( $new instanceof TextContent ) ) {
809
			throw new MWException( "Diff not implemented for " . get_class( $new ) . "; "
810
				. "override generateContentDiffBody to fix this." );
811
		}
812
813
		$otext = $old->serialize();
814
		$ntext = $new->serialize();