Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Dec 14, 2024
1 parent 6cb06e8 commit 34e111d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
class FileFinder
{
/**
* @param string|array<string>|false $matchExtensions
* @param string|array<string>|false $matchExtensions
* @return \Illuminate\Support\Collection<int, string>
*/
public static function handle(string $directory, string|array|false $matchExtensions = false, bool $recursive = false): Collection
Expand All @@ -36,8 +36,8 @@ public static function handle(string $directory, string|array|false $matchExtens
}

$finder->name('/\.('.implode('|', array_map(function (string $extension): string {
return preg_quote(ltrim($extension, '.'), '/');
}, $matchExtensions)).')$/i');
return preg_quote(ltrim($extension, '.'), '/');
}, $matchExtensions)).')$/i');
}

return collect($finder)->map(function (string $file): string {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,8 @@ public function testFindFilesFromFilesystemFacadeWithArguments()
public function testCanSwapOutFileFinder()
{
app()->bind(FileFinder::class, function () {
return new class {
return new class
{
public static function handle(): Collection
{
return collect(['mocked']);
Expand Down

0 comments on commit 34e111d

Please sign in to comment.