From de22d7716d94bf2cc6f63162a526f7bdd049107f Mon Sep 17 00:00:00 2001 From: eileen Date: Wed, 11 Jul 2018 12:36:11 +1200 Subject: [PATCH] Comment fixes --- CRM/Contribute/BAO/ManagePremiums.php | 5 +++-- CRM/Financial/BAO/FinancialType.php | 11 +++-------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/CRM/Contribute/BAO/ManagePremiums.php b/CRM/Contribute/BAO/ManagePremiums.php index 7b900e4044..0d766ca682 100644 --- a/CRM/Contribute/BAO/ManagePremiums.php +++ b/CRM/Contribute/BAO/ManagePremiums.php @@ -73,8 +73,7 @@ class CRM_Contribute_BAO_ManagePremiums extends CRM_Contribute_DAO_Product { * @param bool $is_active * Value we want to set the is_active field. * - * @return Object - * DAO object on success, null otherwise + * @return bool */ public static function setIsActive($id, $is_active) { if (!$is_active) { @@ -121,6 +120,8 @@ class CRM_Contribute_BAO_ManagePremiums extends CRM_Contribute_DAO_Product { * Delete premium Types. * * @param int $productID + * + * @throws \CRM_Core_Exception */ public static function del($productID) { //check dependencies diff --git a/CRM/Financial/BAO/FinancialType.php b/CRM/Financial/BAO/FinancialType.php index 3f5f5efe8d..901e7888ee 100644 --- a/CRM/Financial/BAO/FinancialType.php +++ b/CRM/Financial/BAO/FinancialType.php @@ -32,10 +32,6 @@ */ class CRM_Financial_BAO_FinancialType extends CRM_Financial_DAO_FinancialType { - /** - * Static holder for the default LT. - */ - static $_defaultContributionType = NULL; /** * Static cache holder of available financial types for this session */ @@ -60,7 +56,7 @@ class CRM_Financial_BAO_FinancialType extends CRM_Financial_DAO_FinancialType { * @param array $defaults * (reference ) an assoc array to hold the flattened values. * - * @return CRM_Contribute_BAO_ContributionType + * @return CRM_Financial_DAO_FinancialType */ public static function retrieve(&$params, &$defaults) { $financialType = new CRM_Financial_DAO_FinancialType(); @@ -80,8 +76,7 @@ class CRM_Financial_BAO_FinancialType extends CRM_Financial_DAO_FinancialType { * @param bool $is_active * Value we want to set the is_active field. * - * @return Object - * DAO object on success, null otherwise + * @return bool */ public static function setIsActive($id, $is_active) { return CRM_Core_DAO::setFieldValue('CRM_Financial_DAO_FinancialType', $id, 'is_active', $is_active); @@ -139,7 +134,7 @@ class CRM_Financial_BAO_FinancialType extends CRM_Financial_DAO_FinancialType { $financialType = new CRM_Financial_DAO_FinancialType(); $financialType->id = $financialTypeId; $financialType->find(TRUE); - // tables to ingore checks for financial_type_id + // tables to ignore checks for financial_type_id $ignoreTables = array('CRM_Financial_DAO_EntityFinancialAccount'); // TODO: if (!$financialType->find(true)) { -- 2.25.1