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 #14417 from civicrm/5.14
[civicrm-core.git]
/
CRM
/
Utils
/
GlobalStack.php
diff --git
a/CRM/Utils/GlobalStack.php
b/CRM/Utils/GlobalStack.php
index 61e3ac5fbbb8adc421c85ecbb7802915b0c5b8db..0884e3b134c454075ec43985e31ebadf49e60331 100644
(file)
--- a/
CRM/Utils/GlobalStack.php
+++ b/
CRM/Utils/GlobalStack.php
@@
-55,14
+55,14
@@
class CRM_Utils_GlobalStack {
*/
private static $_singleton = NULL;
*/
private static $_singleton = NULL;
- private $backups =
array()
;
+ private $backups =
[]
;
/**
* Get or set the single instance of CRM_Utils_GlobalStack.
*
* @return CRM_Utils_GlobalStack
*/
/**
* Get or set the single instance of CRM_Utils_GlobalStack.
*
* @return CRM_Utils_GlobalStack
*/
-
static publ
ic function singleton() {
+
public stat
ic function singleton() {
if (self::$_singleton === NULL) {
self::$_singleton = new CRM_Utils_GlobalStack();
}
if (self::$_singleton === NULL) {
self::$_singleton = new CRM_Utils_GlobalStack();
}
@@
-88,7
+88,7
@@
class CRM_Utils_GlobalStack {
* frame
*/
public function createBackup($new) {
* frame
*/
public function createBackup($new) {
- $frame =
array()
;
+ $frame =
[]
;
foreach ($new as $globalKey => $values) {
if (is_array($values)) {
foreach ($values as $key => $value) {
foreach ($new as $globalKey => $values) {
if (is_array($values)) {
foreach ($values as $key => $value) {