We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e6b14b commit 0667534Copy full SHA for 0667534
1 file changed
src/File/FileFinder.php
@@ -48,12 +48,12 @@ public function findFiles(array $paths): FileFinderResult
48
}
49
50
51
- $files = array_values(array_unique(array_filter($files, fn (string $file): bool => !$this->fileExcluder->isExcludedFromAnalysing($file))));
+ $files = array_filter($files, fn (string $file): bool => !$this->fileExcluder->isExcludedFromAnalysing($file));
52
53
sort($files);
54
55
return new FileFinderResult(
56
- array_map(fn (string $file): string => $this->fileHelper->normalizePath($file), $files),
+ array_values(array_unique(array_map(fn (string $file): string => $this->fileHelper->normalizePath($file), $files))),
57
$onlyFiles,
58
);
59
0 commit comments