summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel Catchpole2018-04-03 11:52:24 (GMT)
committerNathaniel Catchpole2018-04-03 11:52:24 (GMT)
commitbd9008cf6d24bb24c50ab252a8650ba8be666180 (patch)
tree61e9b847a296b9be776e0f75e027756e54a674d2
parent065807745f4d98a5130a615dce546875531cd547 (diff)
Issue #2868078 by Manuel Garcia, claudiu.cristea, benjifisher, faline, gigiabba, ankitjain28may, mohit1604: Use new array syntax in PHP files outside of /core
-rw-r--r--sites/default/default.settings.php12
-rw-r--r--sites/example.sites.php4
2 files changed, 8 insertions, 8 deletions
diff --git a/sites/default/default.settings.php b/sites/default/default.settings.php
index 0e7caa3..1e002a1 100644
--- a/sites/default/default.settings.php
+++ b/sites/default/default.settings.php
@@ -88,7 +88,7 @@
* );
* @endcode
*/
-$databases = array();
+$databases = [];
/**
* Customizing database settings.
@@ -251,7 +251,7 @@ $databases = array();
* );
* @endcode
*/
-$config_directories = array();
+$config_directories = [];
/**
* Settings:
@@ -379,7 +379,7 @@ $settings['update_free_access'] = FALSE;
* Specify every reverse proxy IP address in your environment.
* This setting is required if $settings['reverse_proxy'] is TRUE.
*/
-# $settings['reverse_proxy_addresses'] = array('a.b.c.d', ...);
+# $settings['reverse_proxy_addresses'] = ['a.b.c.d', ...];
/**
* Set this value if your proxy server sends the client IP in a header
@@ -573,10 +573,10 @@ if ($settings['hash_salt']) {
* The "en" part of the variable name, is dynamic and can be any langcode of
* any added language. (eg locale_custom_strings_de for german).
*/
-# $settings['locale_custom_strings_en'][''] = array(
+# $settings['locale_custom_strings_en'][''] = [
# 'forum' => 'Discussion board',
# '@count min' => '@count minutes',
-# );
+# ];
/**
* A custom theme for the offline page:
@@ -630,7 +630,7 @@ if ($settings['hash_salt']) {
* override in a services.yml file in the same directory as settings.php
* (definitions in this file will override service definition defaults).
*/
-# $settings['bootstrap_config_storage'] = array('Drupal\Core\Config\BootstrapConfigStorageFactory', 'getFileStorage');
+# $settings['bootstrap_config_storage'] = ['Drupal\Core\Config\BootstrapConfigStorageFactory', 'getFileStorage'];
/**
* Configuration overrides.
diff --git a/sites/example.sites.php b/sites/example.sites.php
index e4de67e..daaf682 100644
--- a/sites/example.sites.php
+++ b/sites/example.sites.php
@@ -26,9 +26,9 @@
* example, to map https://www.drupal.org:8080/mysite/test to the configuration
* directory sites/example.com, the array should be defined as:
* @code
- * $sites = array(
+ * $sites = [
* '8080.www.drupal.org.mysite.test' => 'example.com',
- * );
+ * ];
* @endcode
* The URL, https://www.drupal.org:8080/mysite/test/, could be a symbolic link
* or an Apache Alias directive that points to the Drupal root containing