Conditions | 2 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
44 | public function findFiles(FileNodeCollectionInterface $files) |
||
45 | { |
||
46 | 3 | return $files->filter(function (FileNode $file) { |
|
47 | 3 | $metadata = $file->getMetadata(); |
|
48 | 3 | if ($metadata) { |
|
49 | 2 | return ($this->filter->matches($file->getMetadata())); |
|
50 | } else { |
||
51 | 1 | return false; |
|
52 | } |
||
53 | 3 | }); |
|
54 | } |
||
55 | } |
||
56 |