From 930aa6efb8dabc6fee780c5ce38469a07cb3f754 Mon Sep 17 00:00:00 2001 From: Glauber Silva Date: Thu, 21 Dec 2023 10:01:08 -0300 Subject: [PATCH] refactor: rename method --- src/FormMigration/Steps/FundsAndDesignations.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/FormMigration/Steps/FundsAndDesignations.php b/src/FormMigration/Steps/FundsAndDesignations.php index 0d374b2c85..9bbe8c820d 100644 --- a/src/FormMigration/Steps/FundsAndDesignations.php +++ b/src/FormMigration/Steps/FundsAndDesignations.php @@ -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), ]; } @@ -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, ]; @@ -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;