From 895256440d09bc63f38e45bdddf7e6b9498d4391 Mon Sep 17 00:00:00 2001 From: Kamel Khelifa Date: Fri, 15 Nov 2024 16:31:55 +0100 Subject: [PATCH] Fix phpcs, pre-commit --- htdocs/ecm/class/ecmdirectory.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/ecm/class/ecmdirectory.class.php b/htdocs/ecm/class/ecmdirectory.class.php index 673de3b21e337..132f155a35654 100644 --- a/htdocs/ecm/class/ecmdirectory.class.php +++ b/htdocs/ecm/class/ecmdirectory.class.php @@ -299,8 +299,8 @@ public function changeNbOfFiles($value) global $conf; if ($value == '+') { - $relativepath = $conf->ecm->dir_output . '/' .$this->getRelativePath(); // Ex: dir1/dir2/dir3/ - $relativepath = preg_replace('/^'.preg_quote(DOL_DATA_ROOT, '/').'/', '', $relativepath); + $relativepath = $conf->ecm->dir_output . '/' . $this->getRelativePath(); // Ex: dir1/dir2/dir3/ + $relativepath = preg_replace('/^' . preg_quote(DOL_DATA_ROOT, '/') . '/', '', $relativepath); $relativepath = trim($relativepath, '/'); // Get nb file in relative path