diff --git a/Text/Diff/Engine/native.php b/Text/Diff/Engine/native.php index ee3b533..d41eb96 100644 --- a/Text/Diff/Engine/native.php +++ b/Text/Diff/Engine/native.php @@ -74,11 +74,11 @@ function diff($from_lines, $to_lines) } // Ignore lines which do not exist in both files. - $xhash=[]; + $xhash = []; for ($xi = $skip; $xi < $n_from - $endskip; $xi++) { $xhash[$from_lines[$xi]] = 1; } - $yhash=[]; + $yhash = []; for ($yi = $skip; $yi < $n_to - $endskip; $yi++) { $line = $to_lines[$yi]; if (($this->ychanged[$yi] = empty($xhash[$line]))) { @@ -173,7 +173,7 @@ function _diag($xoff, $xlim, $yoff, $ylim, $nchunks) = array($yoff, $ylim, $xoff, $xlim); } - $ymatches=array(); + $ymatches = array(); if ($flip) { for ($i = $ylim - 1; $i >= $yoff; $i--) { $ymatches[$this->xv[$i]][] = $i;