X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fdiff%2FDiffEngine.php;h=53378e5827fd59aa832396279013f2e72fe93367;hb=edf7224639b6f45c0e6762a664cfb2e84beb8e0a;hp=babd00b5d78c5520fe0a1fbd4042345f14d8cddd;hpb=1e3c2e5904d628c001a8d65909b135ea9bf042aa;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;