From bf72b32ca64c93209cca51875f6e2439676305ed Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen.haas@lakedrops.com> Date: Fri, 16 Feb 2024 13:38:31 +0100 Subject: [PATCH] Change templates to use short array notation --- templates/settings.php.twig | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/templates/settings.php.twig b/templates/settings.php.twig index 6552367..efb64be 100644 --- a/templates/settings.php.twig +++ b/templates/settings.php.twig @@ -1,8 +1,8 @@ <?php -$databases = array ( - 'default' => array ( - 'default' => array ( +$databases = [ + 'default' => [ + 'default' => [ 'driver' => '{{ db.driver }}', 'namespace' => '{{ db.namespace }}', 'database' => '{{ db.host }}', @@ -13,9 +13,9 @@ $databases = array ( 'prefix' => '{{ db.prefix }}', 'charset' => 'utf8mb4', 'collation' => 'utf8mb4_general_ci', - ), - ), -); + ], + ], +]; {% if drupal8 %} $config_directories['sync'] = 'sites/default/files/config/sync'; @@ -31,9 +31,9 @@ $settings['file_temp_path'] = '/tmp'; $settings['file_assets_path'] = '{{ file_assets_path }}'; {% endif %} $settings['hash_salt'] = '{{ hash }}'; -$settings['trusted_host_patterns'] = array( +$settings['trusted_host_patterns'] = [ '^{{ domain }}$', -); +]; if (file_exists(__DIR__ . '/settings.local.php')) { include __DIR__ . '/settings.local.php'; -- GitLab