FileFinder   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 12
ccs 9
cts 9
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A list() 0 10 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace PhpNsFixer\Finder;
6
7
use Symfony\Component\Finder\Finder;
8
use Tightenco\Collect\Support\Collection;
9
10
final class FileFinder
11
{
12 6
    public static function list(string $path): Collection
13
    {
14 6
        return collect(
15 6
            Finder::create()
16 6
                ->name('*.php')
17 6
                ->name('*.phpt')
18 6
                ->ignoreDotFiles(true)
19 6
                ->ignoreVCS(true)
20 6
                ->exclude('vendor')
21 6
                ->in($path)
22
        );
23
    }
24
}
25