[REF] Make explicit what we are doing with 'values' in this code
authoreileen <emcnaughton@wikimedia.org>
Mon, 27 Jul 2020 23:57:33 +0000 (11:57 +1200)
committereileen <emcnaughton@wikimedia.org>
Tue, 28 Jul 2020 06:17:48 +0000 (18:17 +1200)
commit70a2740632ca2cf4c2e48726582e3adaf779789c
tree6c1e779480021326c29f8c0a7e4b460039be4f7b
parent6010fe35306be8f1a3f6546cc2244636d6f7322d
[REF] Make explicit what we are doing with 'values' in this code

I've kept this really small so it can be verified by someone unfamiliar with this code.

Basically if you look you can see the only place 'values' is used is to determine if is_email_receipt is set.
That means everything else in  is unused & ergo we don't need to set it / can throw it away.

Obviously the next step is to extract all the code that determines  into a single place and say
goodbye to  altogether
CRM/Contribute/BAO/Contribution.php