[Import] Minor cleanup on membership import
authoreileen <emcnaughton@wikimedia.org>
Sun, 11 Aug 2019 21:40:30 +0000 (09:40 +1200)
committereileen <emcnaughton@wikimedia.org>
Mon, 12 Aug 2019 00:23:49 +0000 (12:23 +1200)
commit646799278b169f6fcb7f87fc5f08fe5ebed91140
tree3c0f1935afdec643e5241cd0169165506d60e1ba
parentf39da48c4cc1aff2e99e80f20ea8f739172bd42a
[Import] Minor cleanup on membership import

We have a nasty construct (perhaps due to php4 limitations) where the code iterates the _mapperKeys
array & sets a class property specifying the key it occupies. We later use this to check it occupies a key.

This could be much more readable by just checking the array at the right time.

Also I removed an unused private property & a require_once to api.php which is always included
CRM/Member/Import/Parser/Membership.php