From 1c5b4d0924988b6e8dd97254bd066bd06e0a92be Mon Sep 17 00:00:00 2001 From: Sajjad Esmaeeli Date: Sun, 14 Jan 2024 02:09:25 +0100 Subject: [PATCH] refactor --- src/Traits/GetWallets.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Traits/GetWallets.php b/src/Traits/GetWallets.php index 4606dd4..7c42a98 100644 --- a/src/Traits/GetWallets.php +++ b/src/Traits/GetWallets.php @@ -6,12 +6,10 @@ trait GetWallets { - private function walletsInOrder() + private function walletsInOrder(): array { return array_map( - function ($enumCase) { - return $enumCase->value; - }, + fn ($enumCase) => $enumCase->value, WalletEnums::cases() ); }