Minor cleanup on function
authorEileen McNaughton <emcnaughton@wikimedia.org>
Sun, 14 May 2023 23:07:16 +0000 (11:07 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 15 May 2023 00:52:21 +0000 (12:52 +1200)
commitea8ca0ebe97b605898e2ad1d0f4586ab6c7d23b3
tree982f26dda507f556fb8c83c9c3da3619073e9456
parentac65fe4ad82dbb2ba9ce901f34abd6e8c1a77cdb
Minor cleanup on function

The primary goal here was to check that it ALWAYS returns an array. It does,
so I added a type hint.

I also confirmed that
- it is not called from universe
- it is not called with no primaryParticipantID
- it is not called with excludeCancel set for false
so I did some deprecating.

Lastly there was code to handle there being no cancelStatus -
assigning a variable cancelID of 0 as a fallback. But, it
was not being used - so I fixed it to cast-to-int.
CRM/Event/BAO/Participant.php