From 48f0c863cccf17fdcb1d4386e3b2f2de0b04ccd9 Mon Sep 17 00:00:00 2001 From: stickler-ci Date: Tue, 5 Apr 2022 12:30:10 +0000 Subject: [PATCH] Fixing style errors. --- .../core/modules/commande/doc/pdf_einstein.modules.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/htdocs/core/modules/commande/doc/pdf_einstein.modules.php b/htdocs/core/modules/commande/doc/pdf_einstein.modules.php index 9aa5822804b..3bc5575189f 100644 --- a/htdocs/core/modules/commande/doc/pdf_einstein.modules.php +++ b/htdocs/core/modules/commande/doc/pdf_einstein.modules.php @@ -256,16 +256,15 @@ class pdf_einstein extends ModelePDFCommandes $dir = $conf->commande->multidir_output[$conf->entity]; $file = $dir."/SPECIMEN.pdf"; } else { - // Possibility to use suffix for proforma - if(!empty($conf->global->PROFORMA_PDF_WITH_SUFFIX)){ - $suffix = (GETPOST('model',2)=='proforma') ? $conf->global->PROFORMA_PDF_WITH_SUFFIX : ''; + if (!empty($conf->global->PROFORMA_PDF_WITH_SUFFIX)) { + $suffix = (GETPOST('model', 2)=='proforma') ? $conf->global->PROFORMA_PDF_WITH_SUFFIX : ''; } - + $objectref = dol_sanitizeFileName($object->ref); $dir = $conf->commande->multidir_output[$object->entity]."/".$objectref; $file = $dir . "/" .$objectref.$suffix.".pdf"; - } + } if (!file_exists($dir)) { if (dol_mkdir($dir) < 0) {