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 #16299 from mattwire/scheduledjobs_doc
[civicrm-core.git]
/
Civi
/
Core
/
SettingsStack.php
diff --git
a/Civi/Core/SettingsStack.php
b/Civi/Core/SettingsStack.php
index 5d503b379a5e18fe048cdd3815769bb1844ace98..9183857d5cb6a28e433a2f7363ae3774c2c0c344 100644
(file)
--- a/
Civi/Core/SettingsStack.php
+++ b/
Civi/Core/SettingsStack.php
@@
-19,7
+19,7
@@
class SettingsStack {
* @var array
* Ex: $stack[0] == ['settingName', 'oldSettingValue'];
*/
* @var array
* Ex: $stack[0] == ['settingName', 'oldSettingValue'];
*/
- protected $stack =
array()
;
+ protected $stack =
[]
;
/**
* Temporarily apply a setting.
/**
* Temporarily apply a setting.
@@
-29,10
+29,10
@@
class SettingsStack {
*/
public function push($setting, $settingValue) {
if (isset($GLOBALS['civicrm_setting']['domain'][$setting])) {
*/
public function push($setting, $settingValue) {
if (isset($GLOBALS['civicrm_setting']['domain'][$setting])) {
- $this->stack[] =
array($setting, $GLOBALS['civicrm_setting']['domain'][$setting])
;
+ $this->stack[] =
[$setting, $GLOBALS['civicrm_setting']['domain'][$setting]]
;
}
else {
}
else {
- $this->stack[] =
array($setting, NULL)
;
+ $this->stack[] =
[$setting, NULL]
;
}
$GLOBALS['civicrm_setting']['domain'][$setting] = $settingValue;
\Civi::service('settings_manager')->useMandatory();
}
$GLOBALS['civicrm_setting']['domain'][$setting] = $settingValue;
\Civi::service('settings_manager')->useMandatory();