Skip to content

Commit

Permalink
refactor: rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
glaubersilva committed Dec 21, 2023
1 parent e877a29 commit 930aa6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/FormMigration/Steps/FundsAndDesignations.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ private function getFundsAndDesignationsAttributes(int $formId): array
'value' => $fundId,
'label' => $this->getFundLabel($fundId),
'checked' => $isAdminChoice ? $fundId === $adminChoice : true,
'isDefault' => $this->isDefault($fundId),
'isDefault' => $this->isDefaultFund($fundId),
];
}

Expand All @@ -57,7 +57,7 @@ private function getFundsAndDesignationsAttributes(int $formId): array
'value' => $adminChoice,
'label' => $this->getFundLabel($adminChoice),
'checked' => true,
'isDefault' => $this->isDefault($adminChoice),
'isDefault' => $this->isDefaultFund($adminChoice),
] : $options[0],
'options' => $options,
];
Expand All @@ -84,7 +84,7 @@ private function getFundLabel(int $fundId): string
/**
* @unreleased
*/
private function isDefault(int $fundId): bool
private function isDefaultFund(int $fundId): bool
{
global $wpdb;

Expand Down

0 comments on commit 930aa6e

Please sign in to comment.