Skip to content

Commit a9b8ef7

Browse files
committed
1 parent 25905e7 commit a9b8ef7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Diff/SequenceMatcher.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ private function quickRatio()
631631
{
632632
if($this->fullBCount === null) {
633633
$this->fullBCount = array();
634-
$bLength = count ($b);
634+
$bLength = count ($this->b);
635635
for($i = 0; $i < $bLength; ++$i) {
636636
$char = $this->b[$i];
637637
$this->fullBCount[$char] = $this->arrayGetDefault($this->fullBCount, $char, 0) + 1;
@@ -729,7 +729,7 @@ private function tupleSort($a, $b)
729729
}
730730
}
731731

732-
if(count($a) == $count($b)) {
732+
if(count($a) == count($b)) {
733733
return 0;
734734
}
735735
else if(count($a) < count($b)) {

0 commit comments

Comments
 (0)