NFC code tidy up preparatory to CRM-19273
authoreileen <emcnaughton@wikimedia.org>
Mon, 13 Nov 2017 07:18:14 +0000 (20:18 +1300)
committereileen <emcnaughton@wikimedia.org>
Mon, 13 Nov 2017 07:32:28 +0000 (20:32 +1300)
commitf7620bfe39f70bc1d52b044acb1bdfe539d19259
tree25a88dcb3872953e20032d872964dc3afbd88f27
parent3c8b115fa56a018720f7878d933e3922fce950d5
NFC code tidy up preparatory to CRM-19273

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
CRM/Price/BAO/LineItem.php