$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));
$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));
*/
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));