Skip to content

Commit 68e517a

Browse files
committed
longer variable names
1 parent 9cc5cfb commit 68e517a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/jblond/Diff/SequenceMatcher.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -403,10 +403,10 @@ public function getMatchingBlocks() : array
403403
$matchingBlocks = array();
404404
while (!empty($queue)) {
405405
list($alo, $ahi, $blo, $bhi) = array_pop($queue);
406-
$x = $this->findLongestMatch($alo, $ahi, $blo, $bhi);
407-
list($i, $j, $k) = $x;
406+
$longestMatch = $this->findLongestMatch($alo, $ahi, $blo, $bhi);
407+
list($i, $j, $k) = $longestMatch;
408408
if ($k) {
409-
$matchingBlocks[] = $x;
409+
$matchingBlocks[] = $longestMatch;
410410
if ($alo < $i && $blo < $j) {
411411
$queue[] = array(
412412
$alo,
@@ -701,10 +701,10 @@ private function arrayGetDefault(array $array, $key, $default)
701701
private function tupleSort(array $a, array $b) : int
702702
{
703703
$max = max(count($a), count($b));
704-
for ($i = 0; $i < $max; ++$i) {
705-
if ($a[$i] < $b[$i]) {
704+
for ($counter = 0; $counter < $max; ++$counter) {
705+
if ($a[$counter] < $b[$counter]) {
706706
return -1;
707-
} elseif ($a[$i] > $b[$i]) {
707+
} elseif ($a[$counter] > $b[$counter]) {
708708
return 1;
709709
}
710710
}

0 commit comments

Comments
 (0)