We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25905e7 commit a9b8ef7Copy full SHA for a9b8ef7
lib/Diff/SequenceMatcher.php
@@ -631,7 +631,7 @@ private function quickRatio()
631
{
632
if($this->fullBCount === null) {
633
$this->fullBCount = array();
634
- $bLength = count ($b);
+ $bLength = count ($this->b);
635
for($i = 0; $i < $bLength; ++$i) {
636
$char = $this->b[$i];
637
$this->fullBCount[$char] = $this->arrayGetDefault($this->fullBCount, $char, 0) + 1;
@@ -729,7 +729,7 @@ private function tupleSort($a, $b)
729
}
730
731
732
- if(count($a) == $count($b)) {
+ if(count($a) == count($b)) {
733
return 0;
734
735
else if(count($a) < count($b)) {
0 commit comments