Merge pull request #13973 from eileenmcnaughton/array_format6
[civicrm-core.git] / CRM / Utils / VisualBundle.php
index ce089ece59d7198779e929f2c2cf02ab1cd9a6be..139a7ec19e8aac93d2c2a28c7fddaba5fcab13f2 100644 (file)
@@ -54,13 +54,13 @@ class CRM_Utils_VisualBundle {
       return;
     }
 
-    $files = array(
+    $files = [
       'crossfilter' => '[civicrm.bower]/crossfilter-1.3.x/crossfilter.min.js',
       'd3' => '[civicrm.bower]/d3-3.5.x/d3.min.js',
       'dc' => '[civicrm.bower]/dc-2.1.x/dc.min.js',
-    );
+    ];
 
-    $content = array();
+    $content = [];
     $content[] = "(function(){";
     $content[] = "var backups = {d3: window.d3, crossfilter: window.crossfilter, dc: window.dc}";
     $content[] = 'window.CRM = window.CRM || {};';
@@ -93,11 +93,11 @@ class CRM_Utils_VisualBundle {
       return;
     }
 
-    $files = array(
+    $files = [
       '[civicrm.bower]/dc-2.1.x/dc.min.css',
-    );
+    ];
 
-    $content = array();
+    $content = [];
     foreach ($files as $file) {
       $content[] = "// File: $file";
       $content[] = file_get_contents(Civi::paths()->getPath($file));