From 8ad453211a3cad04adee115f80d867da52b37df6 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Sat, 14 Dec 2024 12:54:29 +0000 Subject: [PATCH] Apply fixes from StyleCI --- packages/framework/src/Facades/Filesystem.php | 4 ++-- packages/framework/src/Foundation/Kernel/Filesystem.php | 3 +-- packages/framework/src/Support/DataCollections.php | 2 -- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/framework/src/Facades/Filesystem.php b/packages/framework/src/Facades/Filesystem.php index 487f61199a6..2cbcf58bd59 100644 --- a/packages/framework/src/Facades/Filesystem.php +++ b/packages/framework/src/Facades/Filesystem.php @@ -75,8 +75,8 @@ public static function smartGlob(string $pattern, int $flags = 0): Collection * The returned collection will be a list of paths relative to the project root. * * @param string $directory - * @param string|array|false $matchExtensions The file extension(s) to match, or false to match all files. - * @param bool $recursive Whether to search recursively or not. + * @param string|array|false $matchExtensions The file extension(s) to match, or false to match all files. + * @param bool $recursive Whether to search recursively or not. * @return \Illuminate\Support\Collection */ public static function findFiles(string $directory, string|array|false $matchExtensions = false, bool $recursive = false): Collection diff --git a/packages/framework/src/Foundation/Kernel/Filesystem.php b/packages/framework/src/Foundation/Kernel/Filesystem.php index 840329e5dba..fee5ee435cc 100644 --- a/packages/framework/src/Foundation/Kernel/Filesystem.php +++ b/packages/framework/src/Foundation/Kernel/Filesystem.php @@ -9,7 +9,6 @@ use Hyde\Foundation\PharSupport; use Illuminate\Support\Arr; use Illuminate\Support\Collection; -use Illuminate\Support\Str; use Symfony\Component\Finder\Finder; use function collect; @@ -206,7 +205,7 @@ public function findFiles(string $directory, string|array|false $matchExtensions }, Arr::wrap($matchExtensions))).')$/i'); } - return collect($finder)->map(function (string $file) use ($directory): string { + return collect($finder)->map(function (string $file): string { return $this->pathToRelative($file); })->sort()->values(); } diff --git a/packages/framework/src/Support/DataCollections.php b/packages/framework/src/Support/DataCollections.php index 433bc17d76d..91a22906800 100644 --- a/packages/framework/src/Support/DataCollections.php +++ b/packages/framework/src/Support/DataCollections.php @@ -13,9 +13,7 @@ use Illuminate\Support\Str; use function Hyde\path_join; -use function implode; use function json_decode; -use function sprintf; use function Hyde\unslash; use function str_starts_with;