[REF] Clean up return variables on updateContributionStatus, updatePendingOnlineContr...
authoreileen <emcnaughton@wikimedia.org>
Tue, 1 Sep 2020 03:21:50 +0000 (15:21 +1200)
committereileen <emcnaughton@wikimedia.org>
Tue, 1 Sep 2020 03:22:11 +0000 (15:22 +1200)
commit65b0b7c2d8bcf27a77113d5ee93692ce9b9d39d7
tree4d4447422de87bfdac9eecf675f31383750abf33
parent1d2ed55bddd7df4798693514e97d8087f2a39b36
[REF] Clean up return variables on updateContributionStatus, updatePendingOnlineContribution

The return variable from updatePendingOnlineContribution is never used - ergo don't return it. This means
the return value from updateContributionStatus is also never used - ergo - you get it. In addition don't call the function
with empty variables - I've moved the check as to whether they are empty into the calling function - although likely
in a second pass the checks will be removed or change again
CRM/Event/Form/Task/Batch.php