| Total Complexity | 6 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 7 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 7 | final class Path |
||
| 8 | { |
||
| 9 | public function basename(string $filename): string |
||
| 12 | } |
||
| 13 | |||
| 14 | 43 | public function filename(string $filename): string |
|
| 15 | { |
||
| 16 | 43 | return pathinfo($filename, PATHINFO_FILENAME); |
|
| 17 | } |
||
| 18 | 43 | ||
| 19 | 43 | public function extension(string $filename): string |
|
| 20 | { |
||
| 21 | return pathinfo($filename, PATHINFO_EXTENSION); |
||
| 22 | 14 | } |
|
| 23 | |||
| 24 | public function vendor(string $path): string |
||
| 25 | 43 | { |
|
| 26 | $vendor = ConfigSupport::vendor(); |
||
| 27 | 43 | ||
| 28 | return $this->clean($vendor, $path); |
||
| 29 | 43 | } |
|
| 30 | |||
| 31 | 43 | protected function clean(...$values): string |
|
| 38 | 30 | } |
|
| 39 | } |
||
| 40 |