[REF] - Clean up recentItems functions and add test
authorColeman Watts <coleman@civicrm.org>
Sat, 21 Aug 2021 19:51:29 +0000 (15:51 -0400)
committerColeman Watts <coleman@civicrm.org>
Mon, 23 Aug 2021 03:12:54 +0000 (23:12 -0400)
commitb1fdd118544f9eff7937589ba2624feccb824cda
tree18e900dc5cb678d82b81d9a8f12dbd06100b2cb7
parent54043949b9c6b7fea1ac73f0967c4a2bdcfb5aab
[REF] - Clean up recentItems functions and add test

Use array_filter() instead of brittle for() loops.
CRM/Contact/BAO/Contact.php
CRM/Utils/Recent.php
tests/phpunit/api/v4/Action/RecentItemsTest.php [new file with mode: 0644]