From 6a2d842d3ed5c2eefad048354b9e21f0ca7fa99a Mon Sep 17 00:00:00 2001 From: stickler-ci Date: Fri, 4 Dec 2020 13:47:55 +0000 Subject: [PATCH] Fixing style errors. --- .../modules/import/import_xlsx.modules.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/htdocs/core/modules/import/import_xlsx.modules.php b/htdocs/core/modules/import/import_xlsx.modules.php index 783370eae0f..c427e01a758 100644 --- a/htdocs/core/modules/import/import_xlsx.modules.php +++ b/htdocs/core/modules/import/import_xlsx.modules.php @@ -116,24 +116,24 @@ class ImportXlsx extends ModeleImports require_once DOL_DOCUMENT_ROOT . '/includes/Psr/autoloader.php'; require_once PHPEXCELNEW_PATH . 'Spreadsheet.php'; $this->workbook = new Spreadsheet(); - + //if ($this->id == 'excel2007new') { - if (!class_exists('ZipArchive')) // For Excel2007 + if (!class_exists('ZipArchive')) // For Excel2007 { - $langs->load("errors"); - $this->error = $langs->trans('ErrorPHPNeedModule', 'zip'); - return -1; - } + $langs->load("errors"); + $this->error = $langs->trans('ErrorPHPNeedModule', 'zip'); + return -1; + } } $this->label_lib = 'PhpSpreadSheet'; $this->version_lib = '1.8.0'; - + $this->datatoimport = $datatoimport; if (preg_match('/^societe_/', $datatoimport)) $this->thirpartyobject = new Societe($this->db); } - - + + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps /** * Output header of an example file for this format