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/core#2716 [REF] Stop 'distributing' the main flow #20856

Merged
merged 1 commit into from
Sep 2, 2021

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

[REF] Stop 'distributing' the main flow

The main flow in this function is when the transaction type is subscr_payment -
handling for this is 'distributed' into 3 different parts of the function - this
consolidates it. There is some 'expense' of doing the recur save 'when it happens'
in terms of lines of code but it is still less loopy

Before

Handling for the main flow 'distributed' between the initial check, the switch statement and 'after the return'

After

Consolidated into 'after the return'

Technical Details

Comments

The main flow in this function is when the transaction type is subscr_payment -
handling for this is 'distributed' into 3 different parts of the function - this
consolidates it. There is some 'expense' of doing the recur save 'when it happens'
in terms of lines of code but it is still less loopy
@civibot
Copy link

civibot bot commented Jul 15, 2021

(Standard links)

@civibot civibot bot added the master label Jul 15, 2021
@eileenmcnaughton eileenmcnaughton changed the title [REF] Stop 'distributing' the main flow dev/core#2716 [REF] Stop 'distributing' the main flow Jul 23, 2021
@mattwire mattwire merged commit c8e17ab into civicrm:master Sep 2, 2021
@eileenmcnaughton eileenmcnaughton deleted the paypal branch September 2, 2021 20:14
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