Merge pull request #15673 from eileenmcnaughton/set
[civicrm-core.git] / settings / Developer.setting.php
index 56f2bda18e99edf35557a805cc34302327438129..4ab27dd90a5099a1e31c69cf711b2c56f7a7f59b 100644 (file)
  * Settings metadata file
  */
 
-return array(
-  'assetCache' => array(
+return [
+  'assetCache' => [
     'group_name' => 'Developer Preferences',
     'group' => 'developer',
     'name' => 'assetCache',
     'type' => 'String',
     'quick_form_type' => 'Select',
     'html_type' => 'Select',
-    'html_attributes' => array(
+    'html_attributes' => [
       //'class' => 'crm-select2',
-    ),
+    ],
     'default' => 'auto',
     'add' => '4.7',
     'title' => 'Asset Caching',
@@ -54,11 +54,11 @@ return array(
     'is_contact' => 0,
     'description' => 'Store computed JS/CSS content in cache files? (Note: In "Auto" mode, the "Debug" setting will determine whether to activate the cache.)',
     'help_text' => NULL,
-    'pseudoconstant' => array(
+    'pseudoconstant' => [
       'callback' => '\Civi\Core\AssetBuilder::getCacheModes',
-    ),
-  ),
-  'userFrameworkLogging' => array(
+    ],
+  ],
+  'userFrameworkLogging' => [
     'group_name' => 'Developer Preferences',
     'group' => 'developer',
     'name' => 'userFrameworkLogging',
@@ -71,12 +71,13 @@ return array(
     'is_contact' => 0,
     'description' => "Set this value to Yes if you want CiviCRM error/debugging messages to appear in the Drupal error logs",
     'help_text' => "Set this value to Yes if you want CiviCRM error/debugging messages the appear in your CMS' error log. In the case of Drupal, this will cause all CiviCRM error messages to appear in the watchdog (assuming you have Drupal's watchdog enabled)",
-  ),
-  'debug_enabled' => array(
+  ],
+  'debug_enabled' => [
     'group_name' => 'Developer Preferences',
     'group' => 'developer',
     'name' => 'debug_enabled',
-    'config_key' => 'debug', // we can't call the setting debug as that has other meanings in api
+    // we can't call the setting debug as that has other meanings in api
+    'config_key' => 'debug',
     'type' => 'Boolean',
     'quick_form_type' => 'YesNo',
     'default' => '0',
@@ -86,8 +87,8 @@ return array(
     'is_contact' => 0,
     'description' => "Set this value to Yes if you want to use one of CiviCRM's debugging tools. This feature should NOT be enabled for production sites",
     'help_text' => 'Do not turn this on on production sites',
-  ),
-  'backtrace' => array(
+  ],
+  'backtrace' => [
     'group_name' => 'Developer Preferences',
     'group' => 'developer',
     'name' => 'backtrace',
@@ -99,8 +100,8 @@ return array(
     'is_domain' => 1,
     'is_contact' => 0,
     'description' => "Set this value to Yes if you want to display a backtrace listing when a fatal error is encountered. This feature should NOT be enabled for production sites",
-  ),
-  'environment' => array(
+  ],
+  'environment' => [
     'group_name' => 'Developer Preferences',
     'group' => 'developer',
     'name' => 'environment',
@@ -108,19 +109,19 @@ return array(
     'html_type' => 'Select',
     'quick_form_type' => 'Select',
     'default' => 'Production',
-    'pseudoconstant' => array(
+    'pseudoconstant' => [
       'optionGroupName' => 'environment',
-    ),
+    ],
     'add' => '4.7',
     'title' => 'Environment',
     'is_domain' => 1,
     'is_contact' => 0,
     'description' => "Setting to define the environment in which this CiviCRM instance is running.",
-    'on_change' => array(
+    'on_change' => [
       'CRM_Core_BAO_Setting::onChangeEnvironmentSetting',
-    ),
-  ),
-  'fatalErrorHandler' => array(
+    ],
+  ],
+  'fatalErrorHandler' => [
     'group_name' => 'Developer Preferences',
     'group' => 'developer',
     'name' => 'fatalErrorHandler',
@@ -133,5 +134,5 @@ return array(
     'is_domain' => 1,
     'is_contact' => 0,
     'description' => "Enter the path and class for a custom PHP error-handling function if you want to override built-in CiviCRM error handling for your site.",
-  ),
-);
+  ],
+];