Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
faissaloux committed Oct 11, 2024
1 parent 1d628b1 commit ba2ccd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function isDirOrPhp(string $maybeFile): bool

function isDir(string $maybeDir): bool
{
return !str_contains($maybeDir, '.');
return ! str_contains($maybeDir, '.');
}

function isPhp(string $file): bool
Expand All @@ -28,7 +28,7 @@ function getFilesIn(string $directory, ?int $depth = null): array
$files = array_diff($files, ['.', '..']);
$files = array_filter($files, 'isDirOrPhp');

foreach($files as $file) {
foreach ($files as $file) {
if (isDir($file)) {
if (is_null($depth) || $depth > 0) {
$allFiles = array_merge(getFilesIn($directory.DIRECTORY_SEPARATOR.$file, is_null($depth) ? $depth : $depth - 1), $allFiles);
Expand Down

0 comments on commit ba2ccd4

Please sign in to comment.