From 71d8f758a3056bb6cc305b2eec4314f333be697f Mon Sep 17 00:00:00 2001 From: Bradley Taylor Date: Sat, 15 Jan 2022 11:29:31 +0000 Subject: [PATCH] Add type to phpdoc comment for report statistic function --- CRM/Report/Form/ActivitySummary.php | 2 +- CRM/Report/Form/Case/Detail.php | 2 +- CRM/Report/Form/Contact/Detail.php | 2 +- CRM/Report/Form/Contact/Relationship.php | 2 +- CRM/Report/Form/Contribute/Bookkeeping.php | 2 +- CRM/Report/Form/Contribute/Detail.php | 2 +- CRM/Report/Form/Contribute/History.php | 2 +- CRM/Report/Form/Contribute/HouseholdSummary.php | 2 +- CRM/Report/Form/Contribute/Lybunt.php | 2 +- CRM/Report/Form/Contribute/OrganizationSummary.php | 2 +- CRM/Report/Form/Contribute/PCP.php | 2 +- CRM/Report/Form/Contribute/Repeat.php | 2 +- CRM/Report/Form/Contribute/SoftCredit.php | 2 +- CRM/Report/Form/Contribute/Sybunt.php | 2 +- CRM/Report/Form/Event/Income.php | 3 ++- CRM/Report/Form/Event/IncomeCountSummary.php | 2 +- CRM/Report/Form/Event/ParticipantListCount.php | 3 +-- CRM/Report/Form/Member/ContributionDetail.php | 2 +- CRM/Report/Form/Member/Summary.php | 2 +- CRM/Report/Form/Pledge/Detail.php | 2 +- CRM/Report/Form/Pledge/Summary.php | 2 +- 21 files changed, 22 insertions(+), 22 deletions(-) diff --git a/CRM/Report/Form/ActivitySummary.php b/CRM/Report/Form/ActivitySummary.php index 38e20f360e..b892c574f9 100644 --- a/CRM/Report/Form/ActivitySummary.php +++ b/CRM/Report/Form/ActivitySummary.php @@ -602,7 +602,7 @@ class CRM_Report_Form_ActivitySummary extends CRM_Report_Form { } /** - * @param $rows + * @param array $rows * * @return array */ diff --git a/CRM/Report/Form/Case/Detail.php b/CRM/Report/Form/Case/Detail.php index 053e21c540..bf13f2934a 100644 --- a/CRM/Report/Form/Case/Detail.php +++ b/CRM/Report/Form/Case/Detail.php @@ -468,7 +468,7 @@ class CRM_Report_Form_Case_Detail extends CRM_Report_Form { } /** - * @param $rows + * @param array $rows * * @return array */ diff --git a/CRM/Report/Form/Contact/Detail.php b/CRM/Report/Form/Contact/Detail.php index 56fcb47c60..e69e5c81f3 100644 --- a/CRM/Report/Form/Contact/Detail.php +++ b/CRM/Report/Form/Contact/Detail.php @@ -785,7 +785,7 @@ HERESQL; } /** - * @param $rows + * @param array $rows * * @return array */ diff --git a/CRM/Report/Form/Contact/Relationship.php b/CRM/Report/Form/Contact/Relationship.php index 7937353467..d251cdf6e5 100644 --- a/CRM/Report/Form/Contact/Relationship.php +++ b/CRM/Report/Form/Contact/Relationship.php @@ -561,7 +561,7 @@ class CRM_Report_Form_Contact_Relationship extends CRM_Report_Form { } /** - * @param $rows + * @param array $rows * * @return array */ diff --git a/CRM/Report/Form/Contribute/Bookkeeping.php b/CRM/Report/Form/Contribute/Bookkeeping.php index b96c804409..31869ac265 100644 --- a/CRM/Report/Form/Contribute/Bookkeeping.php +++ b/CRM/Report/Form/Contribute/Bookkeeping.php @@ -480,7 +480,7 @@ class CRM_Report_Form_Contribute_Bookkeeping extends CRM_Report_Form { } /** - * @param $rows + * @param array $rows * * @return array */ diff --git a/CRM/Report/Form/Contribute/Detail.php b/CRM/Report/Form/Contribute/Detail.php index 219f4f3d82..70965b4bd5 100644 --- a/CRM/Report/Form/Contribute/Detail.php +++ b/CRM/Report/Form/Contribute/Detail.php @@ -408,7 +408,7 @@ class CRM_Report_Form_Contribute_Detail extends CRM_Report_Form { } /** - * @param $rows + * @param array $rows * * @return array * @throws \CRM_Core_Exception diff --git a/CRM/Report/Form/Contribute/History.php b/CRM/Report/Form/Contribute/History.php index ba2dd4212c..9d6fe7dfad 100644 --- a/CRM/Report/Form/Contribute/History.php +++ b/CRM/Report/Form/Contribute/History.php @@ -497,7 +497,7 @@ class CRM_Report_Form_Contribute_History extends CRM_Report_Form { } /** - * @param $rows + * @param array $rows * * @return array */ diff --git a/CRM/Report/Form/Contribute/HouseholdSummary.php b/CRM/Report/Form/Contribute/HouseholdSummary.php index 13e028a1a9..8b814cf209 100644 --- a/CRM/Report/Form/Contribute/HouseholdSummary.php +++ b/CRM/Report/Form/Contribute/HouseholdSummary.php @@ -307,7 +307,7 @@ class CRM_Report_Form_Contribute_HouseholdSummary extends CRM_Report_Form { } /** - * @param $rows + * @param array $rows * * @return array */ diff --git a/CRM/Report/Form/Contribute/Lybunt.php b/CRM/Report/Form/Contribute/Lybunt.php index 782ade73c4..32b158d410 100644 --- a/CRM/Report/Form/Contribute/Lybunt.php +++ b/CRM/Report/Form/Contribute/Lybunt.php @@ -483,7 +483,7 @@ class CRM_Report_Form_Contribute_Lybunt extends CRM_Report_Form { } /** - * @param $rows + * @param array $rows * * @return array */ diff --git a/CRM/Report/Form/Contribute/OrganizationSummary.php b/CRM/Report/Form/Contribute/OrganizationSummary.php index 1da83c809a..48b96aabae 100644 --- a/CRM/Report/Form/Contribute/OrganizationSummary.php +++ b/CRM/Report/Form/Contribute/OrganizationSummary.php @@ -315,7 +315,7 @@ class CRM_Report_Form_Contribute_OrganizationSummary extends CRM_Report_Form { } /** - * @param $rows + * @param array $rows * * @return array */ diff --git a/CRM/Report/Form/Contribute/PCP.php b/CRM/Report/Form/Contribute/PCP.php index d2ec81d21c..37edb4eedc 100644 --- a/CRM/Report/Form/Contribute/PCP.php +++ b/CRM/Report/Form/Contribute/PCP.php @@ -296,7 +296,7 @@ LEFT JOIN civicrm_event {$this->_aliases['civicrm_event']} } /** - * @param $rows + * @param array $rows * * @return array */ diff --git a/CRM/Report/Form/Contribute/Repeat.php b/CRM/Report/Form/Contribute/Repeat.php index 3f3bc2d6d9..812bb5c1e0 100644 --- a/CRM/Report/Form/Contribute/Repeat.php +++ b/CRM/Report/Form/Contribute/Repeat.php @@ -664,7 +664,7 @@ LEFT JOIN $this->tempTableRepeat2 {$this->_aliases['civicrm_contribution']}2 } /** - * @param $rows + * @param array $rows * * @return array */ diff --git a/CRM/Report/Form/Contribute/SoftCredit.php b/CRM/Report/Form/Contribute/SoftCredit.php index 15db3e5c93..3def8e3188 100644 --- a/CRM/Report/Form/Contribute/SoftCredit.php +++ b/CRM/Report/Form/Contribute/SoftCredit.php @@ -468,7 +468,7 @@ GROUP BY {$this->_aliases['civicrm_contribution_soft']}.contact_id, constituentn } /** - * @param $rows + * @param array $rows * * @return array */ diff --git a/CRM/Report/Form/Contribute/Sybunt.php b/CRM/Report/Form/Contribute/Sybunt.php index 7b77b6827e..5232f325be 100644 --- a/CRM/Report/Form/Contribute/Sybunt.php +++ b/CRM/Report/Form/Contribute/Sybunt.php @@ -392,7 +392,7 @@ class CRM_Report_Form_Contribute_Sybunt extends CRM_Report_Form { } /** - * @param $rows + * @param array $rows * * @return array */ diff --git a/CRM/Report/Form/Event/Income.php b/CRM/Report/Form/Event/Income.php index d25a840054..24c6cead37 100644 --- a/CRM/Report/Form/Event/Income.php +++ b/CRM/Report/Form/Event/Income.php @@ -206,7 +206,7 @@ class CRM_Report_Form_Event_Income extends CRM_Report_Form { } /** - * @param $eventIDs + * @param array $eventIDs * * @return array */ @@ -298,6 +298,7 @@ class CRM_Report_Form_Event_Income extends CRM_Report_Form { $numRows = $this->_limit; if (CRM_Utils_Array::value('id_op', $this->_params, 'in') == 'in' || $noSelection) { + $rowCount = $this->getRowCount(); while ($count < $rowCount) { if (!isset($this->_params['id_value'][$numRows])) { break; diff --git a/CRM/Report/Form/Event/IncomeCountSummary.php b/CRM/Report/Form/Event/IncomeCountSummary.php index c5b7bb2705..68e78f3428 100644 --- a/CRM/Report/Form/Event/IncomeCountSummary.php +++ b/CRM/Report/Form/Event/IncomeCountSummary.php @@ -247,7 +247,7 @@ class CRM_Report_Form_Event_IncomeCountSummary extends CRM_Report_Form { } /** - * @param $rows + * @param array $rows * * @return array */ diff --git a/CRM/Report/Form/Event/ParticipantListCount.php b/CRM/Report/Form/Event/ParticipantListCount.php index 6e98f4be8b..14e8ebe8e1 100644 --- a/CRM/Report/Form/Event/ParticipantListCount.php +++ b/CRM/Report/Form/Event/ParticipantListCount.php @@ -335,8 +335,7 @@ class CRM_Report_Form_Event_ParticipantListCount extends CRM_Report_Form { } /** - * Add The statistics. - * @param $rows + * @param array $rows * * @return array */ diff --git a/CRM/Report/Form/Member/ContributionDetail.php b/CRM/Report/Form/Member/ContributionDetail.php index b032020a9f..985b55ca5c 100644 --- a/CRM/Report/Form/Member/ContributionDetail.php +++ b/CRM/Report/Form/Member/ContributionDetail.php @@ -576,7 +576,7 @@ class CRM_Report_Form_Member_ContributionDetail extends CRM_Report_Form { } /** - * @param $rows + * @param array $rows * * @return array */ diff --git a/CRM/Report/Form/Member/Summary.php b/CRM/Report/Form/Member/Summary.php index 38ca5d7f8b..2bacccf5a8 100644 --- a/CRM/Report/Form/Member/Summary.php +++ b/CRM/Report/Form/Member/Summary.php @@ -363,7 +363,7 @@ class CRM_Report_Form_Member_Summary extends CRM_Report_Form { } /** - * @param $rows + * @param array $rows * * @return array */ diff --git a/CRM/Report/Form/Pledge/Detail.php b/CRM/Report/Form/Pledge/Detail.php index 75de4ab4e7..599d65b4bc 100644 --- a/CRM/Report/Form/Pledge/Detail.php +++ b/CRM/Report/Form/Pledge/Detail.php @@ -255,7 +255,7 @@ class CRM_Report_Form_Pledge_Detail extends CRM_Report_Form { } /** - * @param $rows + * @param array $rows * * @return array */ diff --git a/CRM/Report/Form/Pledge/Summary.php b/CRM/Report/Form/Pledge/Summary.php index d3f853e806..c49e7b5a7f 100644 --- a/CRM/Report/Form/Pledge/Summary.php +++ b/CRM/Report/Form/Pledge/Summary.php @@ -261,7 +261,7 @@ class CRM_Report_Form_Pledge_Summary extends CRM_Report_Form { } /** - * @param $rows + * @param array $rows * * @return array */ -- 2.25.1