for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace PhpNsFixer\Finder;
use Symfony\Component\Finder\Finder;
use Tightenco\Collect\Support\Collection;
final class FileFinder
{
public static function list(string $path): Collection
return collect(
Finder::create()
->name('*.php')
->name('*.phpt')
->ignoreDotFiles(true)
->ignoreVCS(true)
->exclude('vendor')
->in($path)
);
}