Skip to content

Commit 0667534

Browse files
committed
Update FileFinder.php
1 parent 0e6b14b commit 0667534

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/File/FileFinder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ public function findFiles(array $paths): FileFinderResult
4848
}
4949
}
5050

51-
$files = array_values(array_unique(array_filter($files, fn (string $file): bool => !$this->fileExcluder->isExcludedFromAnalysing($file))));
51+
$files = array_filter($files, fn (string $file): bool => !$this->fileExcluder->isExcludedFromAnalysing($file));
5252

5353
sort($files);
5454

5555
return new FileFinderResult(
56-
array_map(fn (string $file): string => $this->fileHelper->normalizePath($file), $files),
56+
array_values(array_unique(array_map(fn (string $file): string => $this->fileHelper->normalizePath($file), $files))),
5757
$onlyFiles,
5858
);
5959
}

0 commit comments

Comments
 (0)