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 Remove unused parameters from BaseIPN->cancelled signature #18730

Merged
merged 1 commit into from
Oct 10, 2020

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Removes some unused parameters, removes pass-by reference

Before

Cancelled called from 2 places - they only pass in $objects & never use it again

 public function cancelled(&$objects, $transaction = NULL, $input = []) {

Screen Shot 2020-10-11 at 10 17 50 AM

After

public function cancelled($objects) {

Technical Details

Comments

@civibot civibot bot added the master label Oct 10, 2020
@civibot
Copy link

civibot bot commented Oct 10, 2020

(Standard links)

@@ -264,7 +262,6 @@ public function cancelled(&$objects, $transaction = NULL, $input = []) {
]);
$contribution->contribution_status_id = $contributionStatuses['Cancelled'];
$contribution->cancel_date = self::$_now;
$contribution->cancel_reason = $input['reasonCode'] ?? NULL;
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 input is never passed in this would always be NULL

@eileenmcnaughton eileenmcnaughton changed the title Remove unused parameters from BaseIPN->cancelled signature dev/financial#152 Remove unused parameters from BaseIPN->cancelled signature Oct 10, 2020
eileenmcnaughton added a commit to eileenmcnaughton/civicrm-core that referenced this pull request Oct 10, 2020
@seamuslee001 seamuslee001 merged commit cf948a8 into civicrm:master Oct 10, 2020
@seamuslee001 seamuslee001 deleted the pp branch October 10, 2020 23:20
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