/** @var Language|null The language this content is in. */
private $language;
- /**
- * Number of paragraph moves the algorithm should attempt to detect.
- * Only used with the wikidiff2 engine.
- * @var int
- * @see $wgWikiDiff2MovedParagraphDetectionCutoff
- */
- private $wikiDiff2MovedParagraphDetectionCutoff = 0;
-
/** @var string One of the ENGINE_* constants. */
private $engine = self::ENGINE_PHP;
$this->language = $language;
}
- /**
- * @param int $cutoff
- * @see $wgWikiDiff2MovedParagraphDetectionCutoff
- */
- public function setWikiDiff2MovedParagraphDetectionCutoff( $cutoff ) {
- Assert::parameterType( 'integer', $cutoff, '$cutoff' );
- $this->wikiDiff2MovedParagraphDetectionCutoff = $cutoff;
- }
-
/**
* Set which diff engine to use.
* @param string $type One of the ENGINE_* constants.
* Diff the text representations of two content objects (or just two pieces of text in general).
* @param string $oldText
* @param string $newText
- * @return string
+ * @return string HTML, one or more <tr> tags.
*/
public function getTextDiff( $oldText, $newText ) {
Assert::parameterType( 'string', $oldText, '$oldText' );
$oldText,
$newText,
2,
- $this->wikiDiff2MovedParagraphDetectionCutoff
+ 0
);
} else {
// Don't pass the 4th parameter introduced in version 1.5.0 and removed in version 1.8.0