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] [towards dev/core#2693] Use getter rather than passing variable #20852

Merged
merged 1 commit into from
Jul 15, 2021

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

[REF] Use getter rather than passing variable

Before

Array key set & passed around

After

Consistently retrieved as needed

Technical Details

txnType is a required parameter for recurring & unused for single. This switches to retrieving
it as needed rather than passing it around. It removes one check for whether it is
set because the abort will exit if not

Comments

txnType is a required parameter for recurring & unused for single. This switches to retrieving
it as needed rather than passing it around. It removes one check for whether it is
set because the abort will exit if not
@civibot
Copy link

civibot bot commented Jul 14, 2021

(Standard links)

@civibot civibot bot added the master label Jul 14, 2021
@eileenmcnaughton eileenmcnaughton changed the title [REF] Use getter rather than passing variable [REF] [towards dev/core#2693] Use getter rather than passing variable Jul 15, 2021
@eileenmcnaughton
Copy link
Contributor Author

unrelated fail

@eileenmcnaughton eileenmcnaughton merged commit dcd6fcb into civicrm:master Jul 15, 2021
@eileenmcnaughton eileenmcnaughton deleted the paypal branch July 15, 2021 01:14
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