From 88bd4e0db6733d54373ff2da37d2b68e64210f46 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 18 Mar 2023 17:20:48 +0100 Subject: [PATCH] cosmetic --- src/Core.php | 16 ++++++++-------- src/Zip.php | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Core.php b/src/Core.php index b340e70..35a65f2 100644 --- a/src/Core.php +++ b/src/Core.php @@ -70,15 +70,15 @@ class Core $zip_root_dir = $zip->getRootDir(); if ($zip_root_dir != false) { - $target = dirname($zip_file); - $path = $target . DIRECTORY_SEPARATOR . $zip_root_dir; - $define = $zip_root_dir . '/' . dcModules::MODULE_FILE_DEFINE; - $init = $zip_root_dir . '/' . dcModules::MODULE_FILE_INIT; + $target = dirname($zip_file); + $path = $target . DIRECTORY_SEPARATOR . $zip_root_dir; + $define = $zip_root_dir . '/' . dcModules::MODULE_FILE_DEFINE; + $init = $zip_root_dir . '/' . dcModules::MODULE_FILE_INIT; } else { - $target = dirname($zip_file) . DIRECTORY_SEPARATOR . preg_replace('/\.([^.]+)$/', '', basename($zip_file)); - $path = $target; - $define = dcModules::MODULE_FILE_DEFINE; - $init = dcModules::MODULE_FILE_INIT; + $target = dirname($zip_file) . DIRECTORY_SEPARATOR . preg_replace('/\.([^.]+)$/', '', basename($zip_file)); + $path = $target; + $define = dcModules::MODULE_FILE_DEFINE; + $init = dcModules::MODULE_FILE_INIT; } if ($zip->isEmpty()) { diff --git a/src/Zip.php b/src/Zip.php index b6dd544..595992f 100644 --- a/src/Zip.php +++ b/src/Zip.php @@ -28,7 +28,7 @@ class Zip extends \Dotclear\Helper\File\Zip\Zip * @param string $name The name * @param string $file The file * @param int|null $mtime The mtime - * + * * @return void */ protected function writeFile(string $name, string $file, ?int $mtime)