X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FCodeGen%2FDAO.php;h=69cc8d0e479ac4d59b5479f9e01fb027ca1f8111;hb=36f3e0e3b4f86ef5f2738ebf326867efbade7c3f;hp=1a47be7cc5dba895e150ea89f8f3ebd4aa4726b0;hpb=dc617c20a5a57ddc6f77b6c5404f5af65dfe58dd;p=civicrm-core.git diff --git a/CRM/Core/CodeGen/DAO.php b/CRM/Core/CodeGen/DAO.php index 1a47be7cc5..69cc8d0e47 100644 --- a/CRM/Core/CodeGen/DAO.php +++ b/CRM/Core/CodeGen/DAO.php @@ -71,7 +71,7 @@ class CRM_Core_CodeGen_DAO extends CRM_Core_CodeGen_BaseTask { $template = new CRM_Core_CodeGen_Util_Template('php'); $template->assign('table', $this->tables[$this->name]); if (empty($this->tables[$this->name]['index'])) { - $template->assign('indicesPhp', var_export(array(), 1)); + $template->assign('indicesPhp', var_export([], 1)); } else { $template->assign('indicesPhp', var_export($this->tables[$this->name]['index'], 1)); @@ -91,7 +91,7 @@ class CRM_Core_CodeGen_DAO extends CRM_Core_CodeGen_BaseTask { $template = new CRM_Core_CodeGen_Util_Template('php'); $template->assign('table', $this->tables[$this->name]); if (empty($this->tables[$this->name]['index'])) { - $template->assign('indicesPhp', var_export(array(), 1)); + $template->assign('indicesPhp', var_export([], 1)); } else { $template->assign('indicesPhp', var_export($this->tables[$this->name]['index'], 1)); @@ -131,7 +131,7 @@ class CRM_Core_CodeGen_DAO extends CRM_Core_CodeGen_BaseTask { */ protected function getTableChecksum() { if (!$this->tableChecksum) { - $flat = array(); + $flat = []; CRM_Utils_Array::flatten($this->tables[$this->name], $flat); ksort($flat); $this->tableChecksum = md5(json_encode($flat));