X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FVisualBundle.php;h=139a7ec19e8aac93d2c2a28c7fddaba5fcab13f2;hb=a6491ceec03e64e45e127222ae268187c652f5b7;hp=ce089ece59d7198779e929f2c2cf02ab1cd9a6be;hpb=39c3fbcda92848d435b973f403d041fff51e4d4e;p=civicrm-core.git diff --git a/CRM/Utils/VisualBundle.php b/CRM/Utils/VisualBundle.php index ce089ece59..139a7ec19e 100644 --- a/CRM/Utils/VisualBundle.php +++ b/CRM/Utils/VisualBundle.php @@ -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));