+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2019 |
+ | Copyright CiviCRM LLC (c) 2004-2020 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2019
+ * @copyright CiviCRM LLC (c) 2004-2020
*/
/**
public function preProcess() {
CRM_Utils_System::setTitle(ts('CiviContribute'));
- $status = array('Valid', 'Cancelled');
- $prefixes = array('start', 'month', 'year');
+ $status = ['Valid', 'Cancelled'];
+ $prefixes = ['start', 'month', 'year'];
$startDate = NULL;
- $startToDate = $monthToDate = $yearToDate = array();
+ $startToDate = $monthToDate = $yearToDate = [];
//get contribution dates.
$dates = CRM_Contribute_BAO_Contribution::getContributionDates();
- foreach (array(
- 'now',
- 'yearDate',
- 'monthDate',
- ) as $date) {
+ foreach ([
+ 'now',
+ 'yearDate',
+ 'monthDate',
+ ] as $date) {
$$date = $dates[$date];
}
// fiscal years end date