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 f2e2daf commit 8ad4532
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/framework/src/Facades/Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>|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<string>|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<int, string>
*/
public static function findFiles(string $directory, string|array|false $matchExtensions = false, bool $recursive = false): Collection
Expand Down
3 changes: 1 addition & 2 deletions packages/framework/src/Foundation/Kernel/Filesystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
}
Expand Down
2 changes: 0 additions & 2 deletions packages/framework/src/Support/DataCollections.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 8ad4532

Please sign in to comment.