projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #15595 from eileenmcnaughton/dedupe3
[civicrm-core.git]
/
CRM
/
Contribute
/
Page
/
DashBoard.php
diff --git
a/CRM/Contribute/Page/DashBoard.php
b/CRM/Contribute/Page/DashBoard.php
index 79835022dce5470c6e4380fb15a1392cd287b154..161a7b5aad12d65a38a176811b284330eef95766 100644
(file)
--- a/
CRM/Contribute/Page/DashBoard.php
+++ b/
CRM/Contribute/Page/DashBoard.php
@@
-3,7
+3,7
@@
+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-20
19
|
+ | Copyright CiviCRM LLC (c) 2004-20
20
|
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
@@
-28,7
+28,7
@@
/**
*
* @package CRM
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-20
19
+ * @copyright CiviCRM LLC (c) 2004-20
20
*/
/**
*/
/**
@@
-44,18
+44,18
@@
class CRM_Contribute_Page_DashBoard extends CRM_Core_Page {
public function preProcess() {
CRM_Utils_System::setTitle(ts('CiviContribute'));
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;
$startDate = NULL;
- $startToDate = $monthToDate = $yearToDate =
array()
;
+ $startToDate = $monthToDate = $yearToDate =
[]
;
//get contribution dates.
$dates = CRM_Contribute_BAO_Contribution::getContributionDates();
//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
$$date = $dates[$date];
}
// fiscal years end date