From: Bradley Taylor Date: Sat, 2 Dec 2023 20:42:46 +0000 (+0000) Subject: [REF][PHP8.2] Declare properties in HouseholdSummary report X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e913b14edd34a451e992d63e19ab1a4c0a6892ac;p=civicrm-core.git [REF][PHP8.2] Declare properties in HouseholdSummary report --- diff --git a/CRM/Report/Form/Contribute/HouseholdSummary.php b/CRM/Report/Form/Contribute/HouseholdSummary.php index 4003b58cee..165d9bf973 100644 --- a/CRM/Report/Form/Contribute/HouseholdSummary.php +++ b/CRM/Report/Form/Contribute/HouseholdSummary.php @@ -20,6 +20,30 @@ class CRM_Report_Form_Contribute_HouseholdSummary extends CRM_Report_Form { protected $_summary = NULL; + /** + * @var array + * @internal + */ + public $relationTypes; + + /** + * @var int + * @internal + */ + public $relationshipId; + + /** + * @var string + * @internal + */ + public $householdContact; + + /** + * @var string + * @internal + */ + public $otherContact; + /** * Class constructor. */ @@ -407,6 +431,8 @@ class CRM_Report_Form_Contribute_HouseholdSummary extends CRM_Report_Form { */ public function alterDisplay(&$rows) { $type = substr($this->_params['relationship_type_id_value'], -3); + $previousHousehold = NULL; + $previousContact = NULL; $entryFound = FALSE; $flagHousehold = $flagContact = 0; @@ -426,16 +452,16 @@ class CRM_Report_Form_Contribute_HouseholdSummary extends CRM_Report_Form { ) { if ($value = $row['civicrm_contact_household_household_name']) { if ($rowNum == 0) { - $priviousHousehold = $value; + $previousHousehold = $value; } else { - if ($priviousHousehold == $value) { + if ($previousHousehold == $value) { $flagHousehold = 1; - $priviousHousehold = $value; + $previousHousehold = $value; } else { $flagHousehold = 0; - $priviousHousehold = $value; + $previousHousehold = $value; } } @@ -460,16 +486,16 @@ class CRM_Report_Form_Contribute_HouseholdSummary extends CRM_Report_Form { ) { if ($value = $row['civicrm_contact_id']) { if ($rowNum == 0) { - $priviousContact = $value; + $previousContact = $value; } else { - if ($priviousContact == $value) { + if ($previousContact == $value) { $flagContact = 1; - $priviousContact = $value; + $previousContact = $value; } else { $flagContact = 0; - $priviousContact = $value; + $previousContact = $value; } }