| Conditions | 3 |
| Paths | 3 |
| Total Lines | 17 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function classToFileCandidates(ClassName $className): FilePathCandidates |
||
| 29 | { |
||
| 30 | $candidates = []; |
||
| 31 | foreach (glob(sprintf( |
||
| 32 | '%s/**/%s.php', |
||
| 33 | $this->cwd, |
||
| 34 | $className->name() |
||
| 35 | )) as $phpFile) { |
||
| 36 | if (ClassName::fromString( |
||
| 37 | $this->classScanner->getClassNameFromFile($phpFile) |
||
| 38 | ) == $className) { |
||
| 39 | $candidates[] = FilePath::fromString($phpFile); |
||
| 40 | } |
||
| 41 | } |
||
| 42 | |||
| 43 | return FilePathCandidates::fromFilePaths($candidates); |
||
| 44 | } |
||
| 45 | } |
||
| 46 |