Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function inflectToClassName(FilePath $filePath, string $pathPrefix, string $classPrefix): ClassName |
||
23 | { |
||
24 | $className = substr($filePath, strlen($pathPrefix) + 1); |
||
25 | $className = str_replace('/', '\\', $className); |
||
26 | $className = preg_replace('{\.(.+)$}', '', $className); |
||
27 | |||
28 | return ClassName::fromString($className); |
||
29 | } |
||
30 | } |
||
31 |