Skip to content

Commit

Permalink
Cleanup the code
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Dec 14, 2024
1 parent c2279ef commit 6cb06e8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/framework/src/Foundation/Kernel/Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,6 @@ public function smartGlob(string $pattern, int $flags = 0): Collection
/** @return \Illuminate\Support\Collection<int, string> */
public function findFiles(string $directory, string|array|false $matchExtensions = false, bool $recursive = false): Collection
{
$finder = app(FileFinder::class);

return $finder::handle($directory, $matchExtensions, $recursive);
return app(FileFinder::class)->handle($directory, $matchExtensions, $recursive);
}
}

0 comments on commit 6cb06e8

Please sign in to comment.