From ccd88131a5746dee1f892b3ba05a08c25f66e285 Mon Sep 17 00:00:00 2001 From: MDW Date: Mon, 4 Sep 2023 15:16:49 +0200 Subject: [PATCH] Add spaces around assignment operators --- Text/Diff/Engine/native.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;