REF - Swap CRM_Utils_Array::collect with vanilla array_column
authorcolemanw <coleman@civicrm.org>
Sat, 16 Dec 2023 02:47:18 +0000 (21:47 -0500)
committercolemanw <coleman@civicrm.org>
Tue, 19 Dec 2023 02:26:17 +0000 (21:26 -0500)
commitaec577142f1f8e3e2360059223fa868428d403e0
treefd8a480b8e67cd857b92d0c8d9fc77fe4011d569
parentcb38387300d18e553da767ad601fb78722c03d94
REF - Swap CRM_Utils_Array::collect with vanilla array_column

The only difference between these functions (when only passed 2 params)
is the order of the params, and the fact that array_column does not preserve keys.
So CRM_Utils_Array::collect can be swapped out 1-1 with array_column anywhere
that the keys don't matter to the return value.
CRM/Case/BAO/CaseType.php
CRM/Contact/Form/Edit/TagsAndGroups.php
Civi/Api4/Action/Queue/RunItems.php
Civi/Api4/Generic/BasicReplaceAction.php
tests/phpunit/CRM/Activity/Form/Task/PDFTest.php