Merge pull request #16004 from civicrm/5.20
[civicrm-core.git] / settings / Developer.setting.php
index 56f2bda18e99edf35557a805cc34302327438129..55e8573ad035b00e25760fefe4bfe17d13c514fa 100644 (file)
@@ -1,34 +1,18 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 5                                                  |
- +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2019                                |
- +--------------------------------------------------------------------+
- | This file is a part of CiviCRM.                                    |
- |                                                                    |
- | CiviCRM is free software; you can copy, modify, and distribute it  |
- | under the terms of the GNU Affero General Public License           |
- | Version 3, 19 November 2007 and the CiviCRM Licensing Exception.   |
- |                                                                    |
- | CiviCRM is distributed in the hope that it will be useful, but     |
- | WITHOUT ANY WARRANTY; without even the implied warranty of         |
- | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.               |
- | See the GNU Affero General Public License for more details.        |
+ | Copyright CiviCRM LLC. All rights reserved.                        |
  |                                                                    |
- | You should have received a copy of the GNU Affero General Public   |
- | License and the CiviCRM Licensing Exception along                  |
- | with this program; if not, contact CiviCRM LLC                     |
- | at info[AT]civicrm[DOT]org. If you have questions about the        |
- | GNU Affero General Public License or the licensing of CiviCRM,     |
- | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
+ | This work is published under the GNU AGPLv3 license with some      |
+ | permitted exceptions and without any warranty. For full license    |
+ | and copyright information, see https://civicrm.org/licensing       |
  +--------------------------------------------------------------------+
  */
 
 /**
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2019
+ * @copyright CiviCRM LLC https://civicrm.org/licensing
  * $Id$
  *
  */
  * 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 +38,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 +55,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 +71,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 +84,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 +93,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 +118,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.",
-  ),
-);
+  ],
+];