File: includes/diff/engine.php
Unmodified
Added
Modified
Removed
Line 285 | Line 285 |
---|
$matches = $ymatches[$line];
reset($matches);
|
$matches = $ymatches[$line];
reset($matches);
|
while (list(, $y) = each($matches))
| while ($y = current($matches))
|
{
|
{
|
| next($matches);
|
if (empty($this->in_seq[$y])) { $k = $this->_lcs_pos($y);
| if (empty($this->in_seq[$y])) { $k = $this->_lcs_pos($y);
|
Line 296 | Line 297 |
---|
}
// no reset() here
|
}
// no reset() here
|
while (list(, $y) = each($matches))
| while ($y = current($matches))
|
{
|
{
|
| next($matches);
|
if ($y > $this->seq[$k - 1]) { // Optimization: this is a common case: next match is just replacing previous match.
| if ($y > $this->seq[$k - 1]) { // Optimization: this is a common case: next match is just replacing previous match.
|