Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Import] Minor cleanup on membership import #15013

Merged
merged 1 commit into from
Aug 12, 2019

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Very minor code cleanup

Before

More confusing

After

Less confusing

Technical Details

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

Comments

@civibot
Copy link

civibot bot commented Aug 11, 2019

(Standard links)

@civibot civibot bot added the master label Aug 11, 2019
*/


require_once 'api/api.php';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eileenmcnaughton i'm wondering if this was a APIv2 issue or something

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's certainly historical! That file is always included now - although deprecatedUtils - if used - maybe not

@seamuslee001
Copy link
Contributor

Changes look fine to me added MOP

@eileenmcnaughton eileenmcnaughton deleted the member_import branch August 11, 2019 21:52
@eileenmcnaughton eileenmcnaughton restored the member_import branch August 11, 2019 22:19
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
@eileenmcnaughton eileenmcnaughton merged commit 08c2847 into civicrm:master Aug 12, 2019
@eileenmcnaughton eileenmcnaughton deleted the member_import branch August 12, 2019 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants