X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FCodeGen%2FSchema.php;h=b96cb39ebee9e161860769402f54ba9a86cec99d;hb=a541c4f384d85a0c5ac1e439da432af407e7e900;hp=48247fd427e79eaaae91e1ebea35df52ae835173;hpb=cdedc5f3d54bf870f80f092af6f9676786fb99db;p=civicrm-core.git diff --git a/CRM/Core/CodeGen/Schema.php b/CRM/Core/CodeGen/Schema.php index 48247fd427..b96cb39ebe 100644 --- a/CRM/Core/CodeGen/Schema.php +++ b/CRM/Core/CodeGen/Schema.php @@ -75,14 +75,14 @@ class CRM_Core_CodeGen_Schema extends CRM_Core_CodeGen_BaseTask { $template->assign('locale', $locale); $template->assign('db_version', $this->config->db_version); - $sections = array( + $sections = [ 'civicrm_country.tpl', 'civicrm_state_province.tpl', 'civicrm_currency.tpl', 'civicrm_data.tpl', 'civicrm_navigation.tpl', 'civicrm_version_sql.tpl', - ); + ]; $ext = ($locale != 'en_US' ? ".$locale" : ''); // write the initialize base-data sql script @@ -96,10 +96,10 @@ class CRM_Core_CodeGen_Schema extends CRM_Core_CodeGen_BaseTask { public function generateSample() { $template = new CRM_Core_CodeGen_Util_Template('sql'); - $sections = array( + $sections = [ 'civicrm_sample.tpl', 'civicrm_acl.tpl', - ); + ]; $template->runConcat($sections, $this->config->sqlCodePath . 'civicrm_sample.mysql'); $template->run('case_sample.tpl', $this->config->sqlCodePath . 'case_sample.mysql'); @@ -111,7 +111,7 @@ class CRM_Core_CodeGen_Schema extends CRM_Core_CodeGen_BaseTask { public function findLocales() { require_once 'CRM/Core/Config.php'; $config = CRM_Core_Config::singleton(FALSE); - $locales = array(); + $locales = []; $localeDir = CRM_Core_I18n::getResourceDir(); if (file_exists($localeDir)) { $locales = preg_grep('/^[a-z][a-z]_[A-Z][A-Z]$/', scandir($localeDir));