From 8ad38c76ffa43d477917f1888f31f3d4fbcf2230 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Fri, 13 Dec 2024 18:52:00 +0000 Subject: [PATCH] Apply fixes from StyleCI --- packages/framework/src/Foundation/Kernel/Filesystem.php | 2 +- packages/framework/tests/Unit/FilesystemFindFilesTest.php | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/framework/src/Foundation/Kernel/Filesystem.php b/packages/framework/src/Foundation/Kernel/Filesystem.php index 193576a0be8..cabd75d816f 100644 --- a/packages/framework/src/Foundation/Kernel/Filesystem.php +++ b/packages/framework/src/Foundation/Kernel/Filesystem.php @@ -211,7 +211,7 @@ public function findFiles(string $directory, string|false $matchExtension = fals $files = collect(); foreach ($finder as $file) { - $files->push(str_replace($directory . DIRECTORY_SEPARATOR, '', $file->getRealPath())); + $files->push(str_replace($directory.DIRECTORY_SEPARATOR, '', $file->getRealPath())); } return $files; diff --git a/packages/framework/tests/Unit/FilesystemFindFilesTest.php b/packages/framework/tests/Unit/FilesystemFindFilesTest.php index bc7790024d6..da126c3e1e5 100644 --- a/packages/framework/tests/Unit/FilesystemFindFilesTest.php +++ b/packages/framework/tests/Unit/FilesystemFindFilesTest.php @@ -8,7 +8,6 @@ use Hyde\Testing\UnitTestCase; use Hyde\Testing\CreatesTemporaryFiles; use Hyde\Foundation\Kernel\Filesystem; -use Illuminate\Support\Collection; /** * @covers \Hyde\Foundation\Kernel\Filesystem::findFiles @@ -88,4 +87,3 @@ protected function tearDown(): void $this->cleanUpFilesystem(); } } - \ No newline at end of file