Skip to content

Commit 58f2016

Browse files
committed
nits
Signed-off-by: Jack Cherng <jfcherng@gmail.com>
1 parent fe0974d commit 58f2016

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/SequenceMatcher.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,10 +314,10 @@ public function linesAreDifferent(int $aIndex, int $bIndex): bool
314314
$lineB = $this->b[$bIndex];
315315

316316
if ($this->options['ignoreWhitespace']) {
317-
static $replace = ["\t", ' '];
317+
static $whitespaces = ["\t", ' '];
318318

319-
$lineA = \str_replace($replace, '', $lineA);
320-
$lineB = \str_replace($replace, '', $lineB);
319+
$lineA = \str_replace($whitespaces, '', $lineA);
320+
$lineB = \str_replace($whitespaces, '', $lineB);
321321
}
322322

323323
if ($this->options['ignoreCase']) {

0 commit comments

Comments
 (0)