[Ref] Rationalise dedupe code loop.
authoreileen <emcnaughton@wikimedia.org>
Sun, 1 Sep 2019 22:46:36 +0000 (10:46 +1200)
committereileen <emcnaughton@wikimedia.org>
Sat, 7 Sep 2019 21:17:29 +0000 (09:17 +1200)
commitb068bfde8ebf928286dac60594ef9c5fbeed4a93
tree366fa4bdef375b44ff1021fd162f9628e295f085
parent65ac066c8594f6569be021e420140b0b1b34e1fb
[Ref] Rationalise dedupe code loop.

We have a function 'dedupePair' which is intended to act on a specific pair
and a loop function which iterates them.

The 'pair actions' and the 'looping actions' are currently jumbled together.

This moves the 'pair actions' to the dedupePair function
and keeps the 'looping actions' in the parent looping function.

Athough I left it out of scope for this PR the api that calls this
function should only call the 'dedupePair' function not the multiple
pair wrapper
CRM/Dedupe/Merger.php