From 886013faf536fb1013d1dd3f633fbaf815acdf3a Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Thu, 14 Apr 2022 13:41:44 +1200 Subject: [PATCH] Remove unused parameter from private function --- CRM/Import/DataSource/CSV.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/CRM/Import/DataSource/CSV.php b/CRM/Import/DataSource/CSV.php index aaad75f717..34ecf9c7bc 100644 --- a/CRM/Import/DataSource/CSV.php +++ b/CRM/Import/DataSource/CSV.php @@ -81,7 +81,7 @@ class CRM_Import_DataSource_CSV extends CRM_Import_DataSource { */ public function postProcess(&$params, &$db, &$form) { $file = $params['uploadFile']['name']; - $result = self::_CsvToTable($db, + $result = self::_CsvToTable( $file, CRM_Utils_Array::value('skipColumnHeader', $params, FALSE), CRM_Utils_Array::value('import_table_name', $params), @@ -98,8 +98,6 @@ class CRM_Import_DataSource_CSV extends CRM_Import_DataSource { /** * Create a table that matches the CSV file and populate it with the file's contents * - * @param object $db - * Handle to the database connection. * @param string $file * File name to load. * @param bool $headers @@ -114,7 +112,6 @@ class CRM_Import_DataSource_CSV extends CRM_Import_DataSource { * @throws \CRM_Core_Exception */ private static function _CsvToTable( - &$db, $file, $headers = FALSE, $tableName = NULL, -- 2.25.1