From 11baee16109dd5dee2d671fb527a075391d9aade Mon Sep 17 00:00:00 2001 From: Chamil Wijesooriya Date: Fri, 10 Aug 2018 09:50:14 +0100 Subject: [PATCH] Fixed warning errors --- CRM/Core/I18n/SchemaStructure_5_4_alpha1.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/CRM/Core/I18n/SchemaStructure_5_4_alpha1.php b/CRM/Core/I18n/SchemaStructure_5_4_alpha1.php index 0d7a67ddee..5c881410a5 100644 --- a/CRM/Core/I18n/SchemaStructure_5_4_alpha1.php +++ b/CRM/Core/I18n/SchemaStructure_5_4_alpha1.php @@ -23,7 +23,7 @@ | GNU Affero General Public License or the licensing of CiviCRM, | | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ -*/ + */ /** * @@ -41,8 +41,8 @@ class CRM_Core_I18n_SchemaStructure_5_4_alpha1 { * @return array * A table-indexed array of translatable columns. */ - public static function &columns() { - static $result = null; + public static function columns() { + static $result = NULL; if (!$result) { $result = [ 'civicrm_location_type' => [ @@ -210,8 +210,8 @@ class CRM_Core_I18n_SchemaStructure_5_4_alpha1 { * @return array * Indices for translatable fields. */ - public static function &indices() { - static $result = null; + public static function indices() { + static $result = NULL; if (!$result) { $result = [ 'civicrm_custom_group' => [ @@ -254,8 +254,8 @@ class CRM_Core_I18n_SchemaStructure_5_4_alpha1 { * @return array * Array of names of tables with fields that can be translated. */ - static function &tables() { - static $result = null; + public static function tables() { + static $result = NULL; if (!$result) { $result = array_keys(self::columns()); } @@ -268,8 +268,8 @@ class CRM_Core_I18n_SchemaStructure_5_4_alpha1 { * @return array * Array of the widgets for editing translatable fields. */ - static function &widgets() { - static $result = null; + public static function widgets() { + static $result = NULL; if (!$result) { $result = [ 'civicrm_location_type' => [ -- 2.25.1