From 402da5a050ef49cb5d7db57612c73898f19e0f95 Mon Sep 17 00:00:00 2001 From: Luca Date: Thu, 25 Jun 2020 17:58:23 +0200 Subject: [PATCH] Update FileSystem.php --- src/Util/FileSystem.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Util/FileSystem.php b/src/Util/FileSystem.php index b87803b45..68113c936 100755 --- a/src/Util/FileSystem.php +++ b/src/Util/FileSystem.php @@ -61,7 +61,7 @@ class FileSystem /** - * Restituisce il numero di file contenuti in una cartella indicata. + * Restituisce il numero di file contenuti nella cartella indicata. * * @param string $path * @@ -74,11 +74,11 @@ class FileSystem if ($path !== false && $path != '' && file_exists($path)) { foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path, FilesystemIterator::SKIP_DOTS)) as $object) { - $count += 1; + $total += 1; } } - return $count; + return $total; }