<?php public function check(array $parameters): array
{
$filesOrDirectories = iterator_to_array(Finder::create()
->notPath(NotPaths::get($parameters['directory'], $this->config->whitelistedPaths))
->ignoreDotFiles(true)
->ignoreUnreadableDirs()
->ignoreVCSIgnored(true)
->in($parameters['directory'])
->getIterator());
usort($filesOrDirectories, fn (SplFileInfo $a, SplFileInfo $b): int => $a->getRealPath() <=> $b->getRealPath());