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

NFC code tidy up preparatory to CRM-19273 #11272

Merged
merged 2 commits into from
Nov 14, 2017

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Nov 13, 2017

Overview

Code cleanup to remove the Non functional changes from #10962 to facilitate code review.

Before

Code is less pretty

After

Code is more pretty (marginally). Code changes in #10962 can be reduced

Technical Details

As part of reducing https://github.com/civicrm/civicrm-core/pull/10962/files easier to parse this makes some small
code tidy ups

  1. renames functions to not use the deprecated convention of leading underscore
  2. renames function to getLineItemsToAlter rather than 'to add & update'
    (later changes will cause this array to include 'to_cancel' & 'to_resurrect')
  3. changes the array return format for that function to be an array of requiredChanges
  4. rename function _getFinancialItemsToRecord to getReverseFinancialItemsToRecord to
    reflect the fact it is generating an array of reversals to perform

As part of reducing https://github.com/civicrm/civicrm-core/pull/10962/files easier to parse this makes some small
code tidy ups
1) renames functions to not use the deprecated convention of leading underscore
2) renames function to getLineItemsToAlter rather than 'to add & update'
 (later changes will cause this array to include 'to_cancel' & 'to_resurrect')
3) changes the array return format for that function to be an array of requiredChanges
4) rename function _getFinancialItemsToRecord to getReverseFinancialItemsToRecord to
reflect the fact it is generating an array of reversals to perform
@monishdeb
Copy link
Member

Tested the patch, working fine.

@monishdeb monishdeb merged commit dd59a03 into civicrm:master Nov 14, 2017
@monishdeb monishdeb deleted the towards1 branch November 14, 2017 10:03
sluc23 pushed a commit to ixiam/civicrm-core that referenced this pull request Jan 10, 2018
NFC code tidy up preparatory to CRM-19273
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.

3 participants