From 1992b633ba174bcddd38e4c8b0bd91a565033d47 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 28 May 2020 20:02:07 +0200 Subject: [PATCH] Fix phpcs --- htdocs/core/class/html.formfile.class.php | 4 +--- htdocs/website/index.php | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php index a49349392c7..1899c8299cd 100644 --- a/htdocs/core/class/html.formfile.class.php +++ b/htdocs/core/class/html.formfile.class.php @@ -1199,9 +1199,7 @@ class FormFile print ''; print ''; $editline = 1; - } - else - { + } else { $filenametoshow = preg_replace('/\.noexe$/', '', $file['name']); print dol_trunc($filenametoshow, 200); print ''; diff --git a/htdocs/website/index.php b/htdocs/website/index.php index 722be0b60e8..de1feec96e2 100644 --- a/htdocs/website/index.php +++ b/htdocs/website/index.php @@ -396,7 +396,7 @@ if ($massaction == 'setcategory' && GETPOST('confirmmassaction', 'alpha') && $us $category = new Categorie($db); $category->fetch($categoryid); - foreach($toselect as $tmpid) { + foreach ($toselect as $tmpid) { $tmpwebsitepage->id = $tmpid; $result = $category->add_type($tmpwebsitepage, 'website_page'); if ($result < 0 && $result != -3) {