Fix bad usage of "for" loop
This commit is contained in:
parent
ee83b9a7b2
commit
a6e323fae8
@ -80,9 +80,9 @@ class Diff
|
|||||||
$diff[] = array_pop($partialDiff);
|
$diff[] = array_pop($partialDiff);
|
||||||
}
|
}
|
||||||
|
|
||||||
for ($index = $end1 + 1;
|
$end2 = ($compareCharacters ? strlen($sequence1) : count($sequence1));
|
||||||
$index < ($compareCharacters ? strlen($sequence1) : count($sequence1));
|
for ($index = $end1 + 1; $index < $end2; $index++)
|
||||||
$index++) {
|
{
|
||||||
$diff[] = array($sequence1[$index], self::UNMODIFIED);
|
$diff[] = array($sequence1[$index], self::UNMODIFIED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user