Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
SSEsmaeeli committed Jan 14, 2024
1 parent 843d662 commit 1c5b4d0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Traits/GetWallets.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
);
}
Expand Down

0 comments on commit 1c5b4d0

Please sign in to comment.