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 504d7b0 commit 7eb70d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/framework/src/Foundation/Kernel/Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,13 @@ public function findFiles(string $directory, string|false $matchExtension = fals
}

if ($matchExtension !== false) {
$finder->name('/\.' . preg_quote(ltrim($matchExtension, '.'), '/') . '$/i');
$finder->name('/\.'.preg_quote(ltrim($matchExtension, '.'), '/').'$/i');
}

$files = collect();

foreach ($finder as $file) {
$files->push(str_replace($this->path($directory) .DIRECTORY_SEPARATOR, '', $file->getRealPath()));
$files->push(str_replace($this->path($directory).DIRECTORY_SEPARATOR, '', $file->getRealPath()));
}

return $files->sort()->values();
Expand Down

0 comments on commit 7eb70d4

Please sign in to comment.