From: eileen Date: Thu, 4 Aug 2016 08:21:00 +0000 (+1200) Subject: CRM-19170 preliminary tidy up. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=73b448bf0dde689c02343ba9733bd31028036ad1;p=civicrm-core.git CRM-19170 preliminary tidy up. Remove unused return variable, fix comments, remove duplicate key --- diff --git a/CRM/Report/Form.php b/CRM/Report/Form.php index ed8309b177..722ad70f0c 100644 --- a/CRM/Report/Form.php +++ b/CRM/Report/Form.php @@ -3144,7 +3144,7 @@ WHERE cg.extends IN ('" . implode("','", $this->_customGroupExtends) . "') AND else { CRM_Core_Session::setStatus(ts("Report mail could not be sent."), ts('Mail Error'), 'error'); } - return TRUE; + return; } elseif ($this->_outputMode == 'print') { echo $content; diff --git a/CRM/Report/Form/ActivitySummary.php b/CRM/Report/Form/ActivitySummary.php index fc83ff1e51..d4ebc876b0 100644 --- a/CRM/Report/Form/ActivitySummary.php +++ b/CRM/Report/Form/ActivitySummary.php @@ -29,8 +29,6 @@ * * @package CRM * @copyright CiviCRM LLC (c) 2004-2016 - * $Id$ - * */ class CRM_Report_Form_ActivitySummary extends CRM_Report_Form { @@ -42,6 +40,7 @@ class CRM_Report_Form_ActivitySummary extends CRM_Report_Form { /** */ /** + * Class constructor. */ public function __construct() { $this->_columns = array( diff --git a/CRM/Report/Form/Case/Demographics.php b/CRM/Report/Form/Case/Demographics.php index 3badc118d5..0ec779030f 100644 --- a/CRM/Report/Form/Case/Demographics.php +++ b/CRM/Report/Form/Case/Demographics.php @@ -29,8 +29,6 @@ * * @package CRM * @copyright CiviCRM LLC (c) 2004-2016 - * $Id$ - * */ class CRM_Report_Form_Case_Demographics extends CRM_Report_Form { diff --git a/CRM/Report/Form/Case/Summary.php b/CRM/Report/Form/Case/Summary.php index ea39d69d36..a5ef3c4f6a 100644 --- a/CRM/Report/Form/Case/Summary.php +++ b/CRM/Report/Form/Case/Summary.php @@ -29,8 +29,6 @@ * * @package CRM * @copyright CiviCRM LLC (c) 2004-2016 - * $Id$ - * */ class CRM_Report_Form_Case_Summary extends CRM_Report_Form { @@ -41,8 +39,7 @@ class CRM_Report_Form_Case_Summary extends CRM_Report_Form { protected $_customGroupExtends = array('Case'); /** - */ - /** + * Class constructor. */ public function __construct() { $this->case_types = CRM_Case_PseudoConstant::caseType(); diff --git a/CRM/Report/Form/Case/TimeSpent.php b/CRM/Report/Form/Case/TimeSpent.php index c902705764..e8d7f62def 100644 --- a/CRM/Report/Form/Case/TimeSpent.php +++ b/CRM/Report/Form/Case/TimeSpent.php @@ -29,13 +29,11 @@ * * @package CRM * @copyright CiviCRM LLC (c) 2004-2016 - * $Id$ - * */ class CRM_Report_Form_Case_TimeSpent extends CRM_Report_Form { + /** - */ - /** + * Class constructor. */ public function __construct() { diff --git a/CRM/Report/Form/Contact/CurrentEmployer.php b/CRM/Report/Form/Contact/CurrentEmployer.php index e5ea4b76d5..d8a9d127af 100644 --- a/CRM/Report/Form/Contact/CurrentEmployer.php +++ b/CRM/Report/Form/Contact/CurrentEmployer.php @@ -29,8 +29,6 @@ * * @package CRM * @copyright CiviCRM LLC (c) 2004-2016 - * $Id$ - * */ class CRM_Report_Form_Contact_CurrentEmployer extends CRM_Report_Form { @@ -44,6 +42,7 @@ class CRM_Report_Form_Contact_CurrentEmployer extends CRM_Report_Form { public $_drilldownReport = array('contact/detail' => 'Link to Detail Report'); /** + * Class constructor. */ public function __construct() { diff --git a/CRM/Report/Form/Contact/Detail.php b/CRM/Report/Form/Contact/Detail.php index d03432e435..68851120a9 100644 --- a/CRM/Report/Form/Contact/Detail.php +++ b/CRM/Report/Form/Contact/Detail.php @@ -29,8 +29,6 @@ * * @package CRM * @copyright CiviCRM LLC (c) 2004-2016 - * $Id$ - * */ class CRM_Report_Form_Contact_Detail extends CRM_Report_Form { const ROW_COUNT_LIMIT = 10; diff --git a/CRM/Report/Form/Contact/Log.php b/CRM/Report/Form/Contact/Log.php index 3cdc9f06b2..5c8833c57d 100644 --- a/CRM/Report/Form/Contact/Log.php +++ b/CRM/Report/Form/Contact/Log.php @@ -29,16 +29,13 @@ * * @package CRM * @copyright CiviCRM LLC (c) 2004-2016 - * $Id$ - * */ class CRM_Report_Form_Contact_Log extends CRM_Report_Form { protected $_summary = NULL; /** - */ - /** + * Class constructor. */ public function __construct() { diff --git a/CRM/Report/Form/Contact/Summary.php b/CRM/Report/Form/Contact/Summary.php index 40b44d581b..3a496d599c 100644 --- a/CRM/Report/Form/Contact/Summary.php +++ b/CRM/Report/Form/Contact/Summary.php @@ -29,8 +29,6 @@ * * @package CRM * @copyright CiviCRM LLC (c) 2004-2016 - * $Id$ - * */ class CRM_Report_Form_Contact_Summary extends CRM_Report_Form { diff --git a/CRM/Report/Form/Contribute/Bookkeeping.php b/CRM/Report/Form/Contribute/Bookkeeping.php index 7dc7fcb79a..7446c0fc8c 100644 --- a/CRM/Report/Form/Contribute/Bookkeeping.php +++ b/CRM/Report/Form/Contribute/Bookkeeping.php @@ -29,8 +29,6 @@ * * @package CRM * @copyright CiviCRM LLC (c) 2004-2016 - * $Id$ - * */ class CRM_Report_Form_Contribute_Bookkeeping extends CRM_Report_Form { protected $_addressField = FALSE; diff --git a/CRM/Report/Form/Contribute/Detail.php b/CRM/Report/Form/Contribute/Detail.php index 2c473405e9..1baa200d2a 100644 --- a/CRM/Report/Form/Contribute/Detail.php +++ b/CRM/Report/Form/Contribute/Detail.php @@ -506,12 +506,13 @@ GROUP BY {$this->_aliases['civicrm_contribution']}.currency"; /** * This function appears to have been overrriden for the purposes of facilitating soft credits in the report. * - * An alternative approach would have been to have had 2 reports. - * 1) contribution report with optional join extending the retrievable fields & filters with soft credit data - * 2) soft credit report - showing a row per 'payment engagement' (payment or soft credit). + * The report appears to have 2 different functions: + * 1) contribution report + * 2) soft credit report - showing a row per 'payment engagement' (payment or soft credit). There is a separate + * soft credit report as well. * - * As it is many people are confused by the duplicate rows in 'soft credit mode' and this report is complex - * and slowed down by soft credit calculations regardless of whether that information is desired. + * Somewhat confusingly this report returns multiple rows per contribution when soft credits are included. It feels + * like there is a case to split it into 2 separate reports. * * Soft credit functionality is not currently unit tested for this report. */ diff --git a/CRM/Report/Form/Contribute/PCP.php b/CRM/Report/Form/Contribute/PCP.php index 52074d09e1..17a1ea5e07 100644 --- a/CRM/Report/Form/Contribute/PCP.php +++ b/CRM/Report/Form/Contribute/PCP.php @@ -33,9 +33,9 @@ * */ class CRM_Report_Form_Contribute_PCP extends CRM_Report_Form { + /** - */ - /** + * Class constructor. */ public function __construct() { $this->_columns = array( diff --git a/CRM/Report/Form/Contribute/Summary.php b/CRM/Report/Form/Contribute/Summary.php index 899efbf54f..564ed1ac1e 100644 --- a/CRM/Report/Form/Contribute/Summary.php +++ b/CRM/Report/Form/Contribute/Summary.php @@ -443,6 +443,9 @@ class CRM_Report_Form_Contribute_Summary extends CRM_Report_Form { * Set from clause. * * @param string $entity + * + * @todo fix function signature to match parent. Remove hacky passing of $entity + * to acheive unclear results. */ public function from($entity = NULL) { $softCreditJoinType = "LEFT"; diff --git a/CRM/Report/Form/Event/IncomeCountSummary.php b/CRM/Report/Form/Event/IncomeCountSummary.php index 93c9793e98..db3577a22e 100644 --- a/CRM/Report/Form/Event/IncomeCountSummary.php +++ b/CRM/Report/Form/Event/IncomeCountSummary.php @@ -29,8 +29,6 @@ * * @package CRM * @copyright CiviCRM LLC (c) 2004-2016 - * $Id$ - * */ class CRM_Report_Form_Event_IncomeCountSummary extends CRM_Report_Form_Event { @@ -51,8 +49,7 @@ class CRM_Report_Form_Event_IncomeCountSummary extends CRM_Report_Form_Event { public $_drilldownReport = array('event/participantlist' => 'Link to Detail Report'); /** - */ - /** + * Class constructor. */ public function __construct() { diff --git a/CRM/Report/Form/Event/ParticipantListCount.php b/CRM/Report/Form/Event/ParticipantListCount.php index a472ed982d..7cbe4934e4 100644 --- a/CRM/Report/Form/Event/ParticipantListCount.php +++ b/CRM/Report/Form/Event/ParticipantListCount.php @@ -29,8 +29,6 @@ * * @package CRM * @copyright CiviCRM LLC (c) 2004-2016 - * $Id$ - * */ class CRM_Report_Form_Event_ParticipantListCount extends CRM_Report_Form_Event { @@ -45,6 +43,7 @@ class CRM_Report_Form_Event_ParticipantListCount extends CRM_Report_Form_Event { public $_drilldownReport = array('event/income' => 'Link to Detail Report'); /** + * Class constructor. */ public function __construct() { $this->_columns = array( diff --git a/CRM/Report/Form/Event/ParticipantListing.php b/CRM/Report/Form/Event/ParticipantListing.php index 9a5bd5160c..4917c7f27d 100644 --- a/CRM/Report/Form/Event/ParticipantListing.php +++ b/CRM/Report/Form/Event/ParticipantListing.php @@ -29,8 +29,6 @@ * * @package CRM * @copyright CiviCRM LLC (c) 2004-2016 - * $Id$ - * */ class CRM_Report_Form_Event_ParticipantListing extends CRM_Report_Form_Event { @@ -52,8 +50,7 @@ class CRM_Report_Form_Event_ParticipantListing extends CRM_Report_Form_Event { public $_drilldownReport = array('event/income' => 'Link to Detail Report'); /** - */ - /** + * Class constructor. */ public function __construct() { $this->_autoIncludeIndexedFieldsAsOrderBys = 1; diff --git a/CRM/Report/Form/Event/Summary.php b/CRM/Report/Form/Event/Summary.php index 9d1e223444..42858c5749 100644 --- a/CRM/Report/Form/Event/Summary.php +++ b/CRM/Report/Form/Event/Summary.php @@ -29,8 +29,6 @@ * * @package CRM * @copyright CiviCRM LLC (c) 2004-2016 - * $Id$ - * */ class CRM_Report_Form_Event_Summary extends CRM_Report_Form_Event { @@ -50,8 +48,7 @@ class CRM_Report_Form_Event_Summary extends CRM_Report_Form_Event { public $_drilldownReport = array('event/income' => 'Link to Detail Report'); /** - */ - /** + * Class constructor. */ public function __construct() { diff --git a/CRM/Report/Form/Grant/Detail.php b/CRM/Report/Form/Grant/Detail.php index 461b7f29b6..91c7f36a42 100644 --- a/CRM/Report/Form/Grant/Detail.php +++ b/CRM/Report/Form/Grant/Detail.php @@ -29,8 +29,6 @@ * * @package CRM * @copyright CiviCRM LLC (c) 2004-2016 - * $Id$ - * */ class CRM_Report_Form_Grant_Detail extends CRM_Report_Form { @@ -41,8 +39,7 @@ class CRM_Report_Form_Grant_Detail extends CRM_Report_Form { ); /** - */ - /** + * Class constructor. */ public function __construct() { $this->_columns = array( diff --git a/CRM/Report/Form/Grant/Statistics.php b/CRM/Report/Form/Grant/Statistics.php index 421a8781ef..67896422d6 100644 --- a/CRM/Report/Form/Grant/Statistics.php +++ b/CRM/Report/Form/Grant/Statistics.php @@ -29,8 +29,6 @@ * * @package CRM * @copyright CiviCRM LLC (c) 2004-2016 - * $Id$ - * */ class CRM_Report_Form_Grant_Statistics extends CRM_Report_Form { @@ -41,8 +39,7 @@ class CRM_Report_Form_Grant_Statistics extends CRM_Report_Form { protected $_add2groupSupported = FALSE; /** - */ - /** + * Class constructor. */ public function __construct() { $this->_columns = array( diff --git a/CRM/Report/Form/Mailing/Detail.php b/CRM/Report/Form/Mailing/Detail.php index ccbddd44e0..c0f31303b3 100644 --- a/CRM/Report/Form/Mailing/Detail.php +++ b/CRM/Report/Form/Mailing/Detail.php @@ -29,8 +29,6 @@ * * @package CRM * @copyright CiviCRM LLC (c) 2004-2016 - * $Id$ - * */ class CRM_Report_Form_Mailing_Detail extends CRM_Report_Form { diff --git a/CRM/Report/Form/Mailing/Opened.php b/CRM/Report/Form/Mailing/Opened.php index 3d6649dd45..c41bc77d92 100644 --- a/CRM/Report/Form/Mailing/Opened.php +++ b/CRM/Report/Form/Mailing/Opened.php @@ -29,8 +29,6 @@ * * @package CRM * @copyright CiviCRM LLC (c) 2004-2016 - * $Id$ - * */ class CRM_Report_Form_Mailing_Opened extends CRM_Report_Form { @@ -56,6 +54,7 @@ class CRM_Report_Form_Mailing_Opened extends CRM_Report_Form { /** */ /** + * Class constructor. */ public function __construct() { $this->_columns = array(); diff --git a/CRM/Report/Form/Mailing/Summary.php b/CRM/Report/Form/Mailing/Summary.php index d32ef515ca..facc20790a 100644 --- a/CRM/Report/Form/Mailing/Summary.php +++ b/CRM/Report/Form/Mailing/Summary.php @@ -29,8 +29,6 @@ * * @package CRM * @copyright CiviCRM LLC (c) 2004-2016 - * $Id$ - * */ class CRM_Report_Form_Mailing_Summary extends CRM_Report_Form { @@ -50,8 +48,7 @@ class CRM_Report_Form_Mailing_Summary extends CRM_Report_Form { public $campaignEnabled = FALSE; /** - */ - /** + * Class constructor. */ public function __construct() { $this->_columns = array(); diff --git a/CRM/Report/Form/Member/ContributionDetail.php b/CRM/Report/Form/Member/ContributionDetail.php index a66b96dfe5..87a39191d1 100644 --- a/CRM/Report/Form/Member/ContributionDetail.php +++ b/CRM/Report/Form/Member/ContributionDetail.php @@ -29,8 +29,6 @@ * * @package CRM * @copyright CiviCRM LLC (c) 2004-2016 - * $Id$ - * */ class CRM_Report_Form_Member_ContributionDetail extends CRM_Report_Form { protected $_addressField = FALSE; @@ -47,6 +45,7 @@ class CRM_Report_Form_Member_ContributionDetail extends CRM_Report_Form { /** */ /** + * Class constructor. */ public function __construct() { $config = CRM_Core_Config::singleton(); diff --git a/CRM/Report/Form/Member/Lapse.php b/CRM/Report/Form/Member/Lapse.php index 7a6cd9a6f8..88cf716b3d 100644 --- a/CRM/Report/Form/Member/Lapse.php +++ b/CRM/Report/Form/Member/Lapse.php @@ -47,6 +47,7 @@ class CRM_Report_Form_Member_Lapse extends CRM_Report_Form { /** */ /** + * Class constructor. */ public function __construct() { @@ -78,10 +79,6 @@ class CRM_Report_Form_Member_Lapse extends CRM_Report_Form { 'title' => ts('First Name'), 'no_repeat' => TRUE, ), - 'id' => array( - 'no_display' => TRUE, - 'required' => TRUE, - ), 'last_name' => array( 'title' => ts('Last Name'), 'no_repeat' => TRUE, diff --git a/CRM/Report/Form/Member/Summary.php b/CRM/Report/Form/Member/Summary.php index d9d7c7371a..ed1f33f889 100644 --- a/CRM/Report/Form/Member/Summary.php +++ b/CRM/Report/Form/Member/Summary.php @@ -29,8 +29,6 @@ * * @package CRM * @copyright CiviCRM LLC (c) 2004-2016 - * $Id$ - * */ class CRM_Report_Form_Member_Summary extends CRM_Report_Form { @@ -50,6 +48,7 @@ class CRM_Report_Form_Member_Summary extends CRM_Report_Form { /** */ /** + * Class constructor. */ public function __construct() { diff --git a/CRM/Report/Form/Pledge/Detail.php b/CRM/Report/Form/Pledge/Detail.php index af3a6a2c47..a0153f737e 100644 --- a/CRM/Report/Form/Pledge/Detail.php +++ b/CRM/Report/Form/Pledge/Detail.php @@ -40,8 +40,6 @@ * * @package CRM * @copyright CiviCRM LLC (c) 2004-2016 - * $Id$ - * */ class CRM_Report_Form_Pledge_Detail extends CRM_Report_Form { diff --git a/CRM/Report/Form/Pledge/Pbnp.php b/CRM/Report/Form/Pledge/Pbnp.php index 2d349bb69c..1f1a60d11b 100644 --- a/CRM/Report/Form/Pledge/Pbnp.php +++ b/CRM/Report/Form/Pledge/Pbnp.php @@ -29,8 +29,6 @@ * * @package CRM * @copyright CiviCRM LLC (c) 2004-2016 - * $Id$ - * */ class CRM_Report_Form_Pledge_Pbnp extends CRM_Report_Form { protected $_charts = array( @@ -45,8 +43,7 @@ class CRM_Report_Form_Pledge_Pbnp extends CRM_Report_Form { ); /** - */ - /** + * Class constructor. */ public function __construct() { diff --git a/CRM/Report/Form/Pledge/Summary.php b/CRM/Report/Form/Pledge/Summary.php index 3abdbca706..c03f897080 100644 --- a/CRM/Report/Form/Pledge/Summary.php +++ b/CRM/Report/Form/Pledge/Summary.php @@ -44,6 +44,7 @@ class CRM_Report_Form_Pledge_Summary extends CRM_Report_Form { /** */ /** + * Class constructor. */ public function __construct() { $this->_columns = array( diff --git a/CRM/Report/Form/Walklist/Walklist.php b/CRM/Report/Form/Walklist/Walklist.php index 361492aa22..b012113978 100644 --- a/CRM/Report/Form/Walklist/Walklist.php +++ b/CRM/Report/Form/Walklist/Walklist.php @@ -29,8 +29,6 @@ * * @package CRM * @copyright CiviCRM LLC (c) 2004-2016 - * $Id$ - * */ class CRM_Report_Form_Walklist_Walklist extends CRM_Report_Form { protected $_addressField = FALSE; @@ -51,8 +49,7 @@ class CRM_Report_Form_Walklist_Walklist extends CRM_Report_Form { ); /** - */ - /** + * Class constructor. */ public function __construct() { $this->_columns = array(