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
|
@@ 406-410 (lines=5) @@
|
403 |
|
|
404 |
|
// does the old row match better? |
405 |
|
$otherMatchBetter = false; |
406 |
|
foreach ($oldMatchData[$currentIndexInOld] as $index => $percentage) { |
407 |
|
if ($index > $newIndex && $percentage > $matchPercentage) { |
408 |
|
$otherMatchBetter = $index; |
409 |
|
} |
410 |
|
} |
411 |
|
|
412 |
|
if (false !== $otherMatchBetter && $newCount > $oldCount && $difference > 0) { |
413 |
|
// insert row as new |