Minor code cleanup
authoreileen <emcnaughton@wikimedia.org>
Fri, 15 Mar 2019 22:19:45 +0000 (11:19 +1300)
committereileen <emcnaughton@wikimedia.org>
Fri, 15 Mar 2019 22:19:45 +0000 (11:19 +1300)
commitec5e7bcfbe278e4c79ad353ac83016f3d8d049d5
treed5e2f68090c33be813a922c90bb16cc9b878f87e
parentd7e2643dc2b38bbbfeab53355c318440ef702ceb
Minor code cleanup

Invoicing code has been poorly integrated into CiviCRM with much copy & paste,
no following of settings spec and an awful lot of outright hacking.

This is a small step towards moving invoice logic to a centralised place -
specifically in this case the unpacking of the non-standard settings that have been
used. Perhaps once using these functions we can standardise them!

Ideally I'd like to see all the invoicing assigns in a function on this
class, better yet once which mimics the pre or buildForm hook & even
better one day to grow up & be a real hook
CRM/Contribute/Form/Contribution/ThankYou.php
CRM/Event/Form/Registration/ThankYou.php
CRM/Invoicing/Utils.php