Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
7 | public function exactFile(string $realPath): Finder |
||
8 | { |
||
9 | $search = new \SplFileInfo($realPath); |
||
10 | |||
11 | return $this->in($search->getPath())->filter( |
||
12 | function (\SplFileInfo $found) use ($search) { |
||
13 | return $search->getRealPath() === $found->getRealPath(); |
||
14 | } |
||
18 | } |