From 6477f387d7c3006078b52b84cbb0a52758c65027 Mon Sep 17 00:00:00 2001 From: eileen Date: Tue, 2 Jul 2019 11:01:08 +1200 Subject: [PATCH] [REF] remove instances of pass-by-reference where no change takes place I did a grep on these and the passed params are not altered - down with php4 --- CRM/Core/BAO/SchemaHandler.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/CRM/Core/BAO/SchemaHandler.php b/CRM/Core/BAO/SchemaHandler.php index 936b27c0aa..2dbe66fdff 100644 --- a/CRM/Core/BAO/SchemaHandler.php +++ b/CRM/Core/BAO/SchemaHandler.php @@ -64,13 +64,12 @@ class CRM_Core_BAO_SchemaHandler { * TRUE if successfully created, FALSE otherwise * */ - public static function createTable(&$params) { + public static function createTable($params) { $sql = self::buildTableSQL($params); // do not i18n-rewrite CRM_Core_DAO::executeQuery($sql, [], TRUE, NULL, FALSE, FALSE); - $config = CRM_Core_Config::singleton(); - if ($config->logging) { + if (CRM_Core_Config::singleton()->logging) { // logging support $logging = new CRM_Logging_Schema(); $logging->fixSchemaDifferencesFor($params['name'], NULL, FALSE); @@ -87,7 +86,7 @@ class CRM_Core_BAO_SchemaHandler { * * @return string */ - public static function buildTableSQL(&$params) { + public static function buildTableSQL($params) { $sql = "CREATE TABLE {$params['name']} ("; if (isset($params['fields']) && is_array($params['fields']) @@ -295,7 +294,7 @@ ALTER TABLE {$tableName} * * @return bool */ - public static function alterFieldSQL(&$params, $indexExist = FALSE, $triggerRebuild = TRUE) { + public static function alterFieldSQL($params, $indexExist = FALSE, $triggerRebuild = TRUE) { // lets suppress the required flag, since that can cause sql issue $params['required'] = FALSE; -- 2.25.1