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

[REF] Simplify array construction #18432

Merged
merged 1 commit into from
Sep 14, 2020
Merged

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Sep 11, 2020

Overview

[REF] Simplify array construction

Before

$memberParams defined, then copied to $memParams, then most keys unset, then used

After

define the keys that are used....

Technical Details

In trying to interpret #17992

I realised that the code copies values from the dao to an array, copies the array
to another array, unsets most of the variables and then uses that second array.

This simplifies.

The easiest way to work through this code is in a debugger running

testProcessMembershipUpdateStatus

Comments

In trying to interpret civicrm#17992

I realised that the code copies values from the dao to an array, copies the array
to another array, unsets most of the variables and then uses that second array.

This simplifies.

The easiest way to work through this code is in a debugger running

testProcessMembershipUpdateStatus
@civibot
Copy link

civibot bot commented Sep 11, 2020

(Standard links)

@colemanw
Copy link
Member

Yep, that was strange.

@colemanw colemanw merged commit 3ba53f0 into civicrm:master Sep 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants