Skip to content

Commit

Permalink
Add spaces around assignment operators
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeweerd committed Sep 6, 2023
1 parent 1b7e035 commit ccd8813
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Text/Diff/Engine/native.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]))) {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit ccd8813

Please sign in to comment.