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

dev/financial#152 [REF] Pass specific BAO into the recur function rather than the vague 'objects' #19016

Merged
merged 1 commit into from
Nov 23, 2020

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Nov 22, 2020

Overview

Minor simplifcation of parameters for the recur function

Before

The 2 required objects are passed in an array $objects

After

The required objects are specified parameters

Technical Details

Comments

@civibot
Copy link

civibot bot commented Nov 22, 2020

(Standard links)

@civibot civibot bot added the master label Nov 22, 2020
@eileenmcnaughton eileenmcnaughton changed the title dev/financial#152 Pass specific BAO into the recur function rather th… dev/financial#152 [REF] Pass specific BAO into the recur function rather than the vague 'objects' Nov 22, 2020
@@ -84,8 +85,6 @@ public function recur($input, $ids, $objects, $first) {
return;
}

$recur = &$objects['contributionRecur'];
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since objects was not received by reference & is never used again this reference is meaningless

@seamuslee001
Copy link
Contributor

Should have sufficient unit tests here and the code looks right to me MOP

@eileenmcnaughton eileenmcnaughton merged commit 9354b55 into civicrm:master Nov 23, 2020
@eileenmcnaughton eileenmcnaughton deleted the obj branch November 23, 2020 00:01
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