X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FGlobalStack.php;h=0884e3b134c454075ec43985e31ebadf49e60331;hb=9ea8e8dbf8676ea9714681f52a669409705083fe;hp=74590bbbf6d0f96ec88c3cf035a387d488e1a93e;hpb=b769142d05555c4d7ea91cb273e0b1f4de9c6e5e;p=civicrm-core.git diff --git a/CRM/Utils/GlobalStack.php b/CRM/Utils/GlobalStack.php index 74590bbbf6..0884e3b134 100644 --- a/CRM/Utils/GlobalStack.php +++ b/CRM/Utils/GlobalStack.php @@ -2,7 +2,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 5 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2018 | + | Copyright CiviCRM LLC (c) 2004-2019 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -27,7 +27,7 @@ /** * * @package CRM - * @copyright CiviCRM LLC (c) 2004-2018 + * @copyright CiviCRM LLC (c) 2004-2019 */ /** @@ -55,14 +55,14 @@ class CRM_Utils_GlobalStack { */ private static $_singleton = NULL; - private $backups = array(); + private $backups = []; /** * Get or set the single instance of CRM_Utils_GlobalStack. * * @return CRM_Utils_GlobalStack */ - static public function singleton() { + public static function singleton() { if (self::$_singleton === NULL) { self::$_singleton = new CRM_Utils_GlobalStack(); } @@ -88,7 +88,7 @@ class CRM_Utils_GlobalStack { * frame */ public function createBackup($new) { - $frame = array(); + $frame = []; foreach ($new as $globalKey => $values) { if (is_array($values)) { foreach ($values as $key => $value) {