X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fdiff%2FDiffEngine.php;h=53378e5827fd59aa832396279013f2e72fe93367;hb=6ff59f49793acccc53b34188d7490a35cbd7f3a2;hp=babd00b5d78c5520fe0a1fbd4042345f14d8cddd;hpb=e5facc46bc170c302438f60849041b0d6be75e82;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/diff/DiffEngine.php b/includes/diff/DiffEngine.php index babd00b5d7..53378e5827 100644 --- a/includes/diff/DiffEngine.php +++ b/includes/diff/DiffEngine.php @@ -79,7 +79,6 @@ class DiffEngine { * @return DiffOp[] */ public function diff( $from_lines, $to_lines ) { - // Diff and store locally $this->diffInternal( $from_lines, $to_lines ); @@ -182,7 +181,7 @@ class DiffEngine { } while ( $i < $len && !$changed[$i] ) { - assert( $j < $other_len && ! $other_changed[$j] ); + assert( $j < $other_len && !$other_changed[$j] ); $i++; $j++; while ( $j < $other_len && $other_changed[$j] ) { @@ -247,7 +246,7 @@ class DiffEngine { $i++; } - assert( $j < $other_len && ! $other_changed[$j] ); + assert( $j < $other_len && !$other_changed[$j] ); $j++; if ( $j < $other_len && $other_changed[$j] ) { $corresponding = $i;