X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=Civi%2FCore%2FSettingsStack.php;h=9183857d5cb6a28e433a2f7363ae3774c2c0c344;hb=3317480e3a7ae455b45ea93a6cda952e35df69e7;hp=434c8371e6b6d0031fa7e70d9007804c25d11bd2;hpb=df809d92a43c9a7c76ad726f9b29dab17e21c9bd;p=civicrm-core.git diff --git a/Civi/Core/SettingsStack.php b/Civi/Core/SettingsStack.php index 434c8371e6..9183857d5c 100644 --- a/Civi/Core/SettingsStack.php +++ b/Civi/Core/SettingsStack.php @@ -9,7 +9,7 @@ namespace Civi\Core; * * Like the global `$civicrm_setting` variable, it works best with typical inert settings that * do not trigger extra activation logic. A handful of settings (such as `enable_components` - * and ~5 others) + * and ~5 others) should be avoided, but most settings should work. * * @package Civi\Core */ @@ -19,7 +19,7 @@ class SettingsStack { * @var array * Ex: $stack[0] == ['settingName', 'oldSettingValue']; */ - protected $stack = array(); + protected $stack = []; /** * Temporarily apply a setting. @@ -29,10 +29,10 @@ class SettingsStack { */ 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 { - $this->stack[] = array($setting, NULL); + $this->stack[] = [$setting, NULL]; } $GLOBALS['civicrm_setting']['domain'][$setting] = $settingValue; \Civi::service('settings_manager')->useMandatory();