X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fdiff%2FWordLevelDiff.php;h=0b318bdb3979f435b1527dea3d27f7ee831b0035;hp=296e3b7493a4c3c89bcea850d671b9ce4521012a;hb=e7720b8f8e09287384ddee271641d1b1721318bb;hpb=dd57ff3cce86f3055c249a414c49b74f2bcb3497 diff --git a/includes/diff/WordLevelDiff.php b/includes/diff/WordLevelDiff.php index 296e3b7493..0b318bdb39 100644 --- a/includes/diff/WordLevelDiff.php +++ b/includes/diff/WordLevelDiff.php @@ -33,7 +33,7 @@ use MediaWiki\Diff\WordAccumulator; */ class WordLevelDiff extends \Diff { /** - * @inheritdoc + * @inheritDoc */ protected $bailoutComplexity = 40000000; // Roughly 6K x 6K words changed @@ -42,7 +42,6 @@ class WordLevelDiff extends \Diff { * @param string[] $linesAfter */ public function __construct( $linesBefore, $linesAfter ) { - list( $wordsBefore, $wordsBeforeStripped ) = $this->split( $linesBefore ); list( $wordsAfter, $wordsAfterStripped ) = $this->split( $linesAfter ); @@ -68,7 +67,6 @@ class WordLevelDiff extends \Diff { $yi += count( $closing ); } } - } /** @@ -77,7 +75,6 @@ class WordLevelDiff extends \Diff { * @return array[] */ private function split( $lines ) { - $words = []; $stripped = []; $first = true;