| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 47 | private function baseFileContainsPharExtension(string $path): bool |
||
| 48 | { |
||
| 49 | $invocation = Manager::instance()->resolve($path); |
||
| 50 | if ($invocation === null) { |
||
| 51 | return false; |
||
| 52 | } |
||
| 53 | $fileExtension = pathinfo($invocation->getBaseName(), PATHINFO_EXTENSION); |
||
| 54 | return strtolower($fileExtension) === 'phar'; |
||
|
|
|||
| 55 | } |
||
| 57 |