From ba2ccd44e8c7e513c5c9a597333dca31b1c4c2cc Mon Sep 17 00:00:00 2001 From: faissaloux Date: Fri, 11 Oct 2024 21:43:40 +0100 Subject: [PATCH] lint --- src/helpers.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helpers.php b/src/helpers.php index bd487e8..ee32644 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -7,7 +7,7 @@ function isDirOrPhp(string $maybeFile): bool function isDir(string $maybeDir): bool { - return !str_contains($maybeDir, '.'); + return ! str_contains($maybeDir, '.'); } function isPhp(string $file): bool @@ -28,7 +28,7 @@ function getFilesIn(string $directory, ?int $depth = null): array $files = array_diff($files, ['.', '..']); $files = array_filter($files, 'isDirOrPhp'); - foreach($files as $file) { + foreach ($files as $file) { if (isDir($file)) { if (is_null($depth) || $depth > 0) { $allFiles = array_merge(getFilesIn($directory.DIRECTORY_SEPARATOR.$file, is_null($depth) ? $depth : $depth - 1), $allFiles);