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