Add type to phpdoc comment for report statistic function
authorBradley Taylor <hello@brad-taylor.co.uk>
Sat, 15 Jan 2022 11:29:31 +0000 (11:29 +0000)
committerBradley Taylor <hello@brad-taylor.co.uk>
Sat, 15 Jan 2022 11:29:31 +0000 (11:29 +0000)
21 files changed:
CRM/Report/Form/ActivitySummary.php
CRM/Report/Form/Case/Detail.php
CRM/Report/Form/Contact/Detail.php
CRM/Report/Form/Contact/Relationship.php
CRM/Report/Form/Contribute/Bookkeeping.php
CRM/Report/Form/Contribute/Detail.php
CRM/Report/Form/Contribute/History.php
CRM/Report/Form/Contribute/HouseholdSummary.php
CRM/Report/Form/Contribute/Lybunt.php
CRM/Report/Form/Contribute/OrganizationSummary.php
CRM/Report/Form/Contribute/PCP.php
CRM/Report/Form/Contribute/Repeat.php
CRM/Report/Form/Contribute/SoftCredit.php
CRM/Report/Form/Contribute/Sybunt.php
CRM/Report/Form/Event/Income.php
CRM/Report/Form/Event/IncomeCountSummary.php
CRM/Report/Form/Event/ParticipantListCount.php
CRM/Report/Form/Member/ContributionDetail.php
CRM/Report/Form/Member/Summary.php
CRM/Report/Form/Pledge/Detail.php
CRM/Report/Form/Pledge/Summary.php

index 38e20f360ee6bca04f837aeb9710847f9c5f3f5d..b892c574f97ef2f6a3c8ddf15c5d59ed1a260d16 100644 (file)
@@ -602,7 +602,7 @@ class CRM_Report_Form_ActivitySummary extends CRM_Report_Form {
   }
 
   /**
-   * @param $rows
+   * @param array $rows
    *
    * @return array
    */
index 053e21c540210359a5675da169dc882dfa9fa0c9..bf13f2934ade29c4acf8379d319c8e55f94ca8b6 100644 (file)
@@ -468,7 +468,7 @@ class CRM_Report_Form_Case_Detail extends CRM_Report_Form {
   }
 
   /**
-   * @param $rows
+   * @param array $rows
    *
    * @return array
    */
index 56fcb47c60786ba0f6f14d96d35d330f9c411ba8..e69e5c81f3a45cfc48e73ef005da0c8803805a9a 100644 (file)
@@ -785,7 +785,7 @@ HERESQL;
   }
 
   /**
-   * @param $rows
+   * @param array $rows
    *
    * @return array
    */
index 7937353467612ab1fee6d2968c229dd13c846e0c..d251cdf6e50e35132a0d63c6b30852f33660d5ab 100644 (file)
@@ -561,7 +561,7 @@ class CRM_Report_Form_Contact_Relationship extends CRM_Report_Form {
   }
 
   /**
-   * @param $rows
+   * @param array $rows
    *
    * @return array
    */
index b96c804409c6b2eb35a676ac3b6ac546138fdf7d..31869ac265d700df4a386d69ed4b5ed0f26a53d4 100644 (file)
@@ -480,7 +480,7 @@ class CRM_Report_Form_Contribute_Bookkeeping extends CRM_Report_Form {
   }
 
   /**
-   * @param $rows
+   * @param array $rows
    *
    * @return array
    */
index 219f4f3d8221ac93aa94217bb735474fbd5de4d6..70965b4bd5e43df9ba400bfb248d271e51a90503 100644 (file)
@@ -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
index ba2dd4212cbb0451f89823656cb6063ba0846d10..9d6fe7dfad83ef8a328797ccdde1d4f171fe6b63 100644 (file)
@@ -497,7 +497,7 @@ class CRM_Report_Form_Contribute_History extends CRM_Report_Form {
   }
 
   /**
-   * @param $rows
+   * @param array $rows
    *
    * @return array
    */
index 13e028a1a94c47e46d6d3ee400b137e34c0b3434..8b814cf2098438403f4326838b5d67489811450e 100644 (file)
@@ -307,7 +307,7 @@ class CRM_Report_Form_Contribute_HouseholdSummary extends CRM_Report_Form {
   }
 
   /**
-   * @param $rows
+   * @param array $rows
    *
    * @return array
    */
index 782ade73c46fed1a6897bc8e479ef3f38a697af4..32b158d410060517775b75f1606ffb774da317f1 100644 (file)
@@ -483,7 +483,7 @@ class CRM_Report_Form_Contribute_Lybunt extends CRM_Report_Form {
   }
 
   /**
-   * @param $rows
+   * @param array $rows
    *
    * @return array
    */
index 1da83c809a9145386c3e86679da4bc5e63fafd25..48b96aabae6f6a16a1dcff2a7d89231ae162a743 100644 (file)
@@ -315,7 +315,7 @@ class CRM_Report_Form_Contribute_OrganizationSummary extends CRM_Report_Form {
   }
 
   /**
-   * @param $rows
+   * @param array $rows
    *
    * @return array
    */
index d2ec81d21c389e5ee9c157aacf586f7f304f56f9..37edb4eedc78a067c217b922be020753ce4a6415 100644 (file)
@@ -296,7 +296,7 @@ LEFT JOIN civicrm_event {$this->_aliases['civicrm_event']}
   }
 
   /**
-   * @param $rows
+   * @param array $rows
    *
    * @return array
    */
index 3f3bc2d6d9ff940309277fb4b0f0cbd8b13f8452..812bb5c1e0c5a6db960b1e52b534fc780f360b0e 100644 (file)
@@ -664,7 +664,7 @@ LEFT JOIN $this->tempTableRepeat2 {$this->_aliases['civicrm_contribution']}2
   }
 
   /**
-   * @param $rows
+   * @param array $rows
    *
    * @return array
    */
index 15db3e5c938f58a9e3a7c8d13bd0af839ae47dac..3def8e31888ed08f9ef95563cce7f4d5d7b8e543 100644 (file)
@@ -468,7 +468,7 @@ GROUP BY {$this->_aliases['civicrm_contribution_soft']}.contact_id, constituentn
   }
 
   /**
-   * @param $rows
+   * @param array $rows
    *
    * @return array
    */
index 7b77b6827eee30451712f8fcbba173774a7a5a26..5232f325bef0cd63277aeebb3fae7c9f6f9c58e7 100644 (file)
@@ -392,7 +392,7 @@ class CRM_Report_Form_Contribute_Sybunt extends CRM_Report_Form {
   }
 
   /**
-   * @param $rows
+   * @param array $rows
    *
    * @return array
    */
index d25a8400542d110d646fa5d8ecad7d12e48d9b50..24c6cead3710de7f6b6c33727aaf9c48b8e98ac2 100644 (file)
@@ -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;
index c5b7bb2705b6d55d475416c3adec1b9fbde82340..68e78f34281d9d75c889605cf28edddbeab25bbe 100644 (file)
@@ -247,7 +247,7 @@ class CRM_Report_Form_Event_IncomeCountSummary extends CRM_Report_Form {
   }
 
   /**
-   * @param $rows
+   * @param array $rows
    *
    * @return array
    */
index 6e98f4be8be66a758946b6762d2c416846234571..14e8ebe8e15720aad4cf13ec520df2f3298b9272 100644 (file)
@@ -335,8 +335,7 @@ class CRM_Report_Form_Event_ParticipantListCount extends CRM_Report_Form {
   }
 
   /**
-   * Add The statistics.
-   * @param $rows
+   * @param array $rows
    *
    * @return array
    */
index b032020a9f4d91c72b8119636b16b8048d36f539..985b55ca5c92726ebabc2a8cf74152342252a544 100644 (file)
@@ -576,7 +576,7 @@ class CRM_Report_Form_Member_ContributionDetail extends CRM_Report_Form {
   }
 
   /**
-   * @param $rows
+   * @param array $rows
    *
    * @return array
    */
index 38ca5d7f8b60c9dfbd8b00b5a90e3f2a0c3a5e7b..2bacccf5a826a844dd3c302fc1d9cbc7402b7f93 100644 (file)
@@ -363,7 +363,7 @@ class CRM_Report_Form_Member_Summary extends CRM_Report_Form {
   }
 
   /**
-   * @param $rows
+   * @param array $rows
    *
    * @return array
    */
index 75de4ab4e77c5c92285832e950810fef8eb3472c..599d65b4bc3be02e082830c30f198e836118f1ad 100644 (file)
@@ -255,7 +255,7 @@ class CRM_Report_Form_Pledge_Detail extends CRM_Report_Form {
   }
 
   /**
-   * @param $rows
+   * @param array $rows
    *
    * @return array
    */
index d3f853e806bad38f772ba285c1b9296c6494c4e4..c49e7b5a7f302d46e0966f204db9982e73197271 100644 (file)
@@ -261,7 +261,7 @@ class CRM_Report_Form_Pledge_Summary extends CRM_Report_Form {
   }
 
   /**
-   * @param $rows
+   * @param array $rows
    *
    * @return array
    */