lib/Caxy/HtmlDiff/ListDiffNew.php 1 location
|
@@ 86-90 (lines=5) @@
|
| 83 |
|
|
| 84 |
|
// does the old list item match better? |
| 85 |
|
$otherMatchBetter = false; |
| 86 |
|
foreach ($oldMatchData[$oldListIndex] as $index => $percentage) { |
| 87 |
|
if ($index > $newIndex && $percentage > $matchPercentage) { |
| 88 |
|
$otherMatchBetter = $index; |
| 89 |
|
} |
| 90 |
|
} |
| 91 |
|
|
| 92 |
|
if (false !== $otherMatchBetter && $newCount > $oldCount && $difference > 0) { |
| 93 |
|
$diffOutput .= sprintf('%s', $newListItem->getHtml('normal new', 'ins')); |
lib/Caxy/HtmlDiff/Table/TableDiff.php 1 location
|
@@ 403-407 (lines=5) @@
|
| 400 |
|
|
| 401 |
|
// does the old row match better? |
| 402 |
|
$otherMatchBetter = false; |
| 403 |
|
foreach ($oldMatchData[$currentIndexInOld] as $index => $percentage) { |
| 404 |
|
if ($index > $newIndex && $percentage > $matchPercentage) { |
| 405 |
|
$otherMatchBetter = $index; |
| 406 |
|
} |
| 407 |
|
} |
| 408 |
|
|
| 409 |
|
if (false !== $otherMatchBetter && $newCount > $oldCount && $difference > 0) { |
| 410 |
|
// insert row as new |