[REF] refactor on nasty Dedupe function
authoreileen <emcnaughton@wikimedia.org>
Tue, 12 Nov 2019 02:24:34 +0000 (15:24 +1300)
committereileen <emcnaughton@wikimedia.org>
Tue, 12 Nov 2019 02:54:12 +0000 (15:54 +1300)
commit9287a0b77da87d64f59a2dad35aa38992883a07e
tree8092e1016431e57b90997bf179ead5c30ab21844
parent33c3ad9ec697fbaea5792a5ee8ebf0d01486ee49
[REF] refactor on nasty Dedupe function

I found with other pieces of refactoring static functions that creating a class to support the refactor
made it much easier as that way I could leverage the fact thatt classes have properties and
get away from the crazy param passing that characterizes a nest of static functions.

This adds a class for that purpose and moves a small chunk of code handling into the class.

The goal is to move the handling is done purely for the form back onto the form....
CRM/Dedupe/MergeHandler.php [new file with mode: 0644]
CRM/Dedupe/Merger.php