From 649bc59218e179da624202c0af7ec2f303f1725f Mon Sep 17 00:00:00 2001 From: Nguyen Tran Chung Date: Fri, 2 Dec 2022 12:35:57 +0900 Subject: [PATCH] method_argument_space --- tinyfilemanager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tinyfilemanager.php b/tinyfilemanager.php index 2271a5e..7b99036 100644 --- a/tinyfilemanager.php +++ b/tinyfilemanager.php @@ -1141,7 +1141,7 @@ if (isset($_POST['unzip'], $_POST['token']) && !FM_READONLY) { } elseif ($ext == "tar") { try { $gzipper = new PharData($zip_path); - if (@$gzipper->extractTo($path,null, true)) { + if (@$gzipper->extractTo($path, null, true)) { $res = true; } else { $res = false; @@ -1240,7 +1240,7 @@ $parent = fm_get_parent_path(FM_PATH); $objects = is_readable($path) ? scandir($path) : array(); $folders = array(); $files = array(); -$current_path = array_slice(explode("/",$path), -1)[0]; +$current_path = array_slice(explode("/", $path), -1)[0]; if (is_array($objects) && fm_is_exclude_items($current_path)) { foreach ($objects as $file) { if ($file == '.' || $file == '..') {