| Total Complexity | 4 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | class PharExtensionInterceptor implements Assertable |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * Determines whether the base file name has a ".phar" suffix. |
||
| 23 | * |
||
| 24 | * @param string $path |
||
| 25 | * @param string $command |
||
| 26 | * @return bool |
||
| 27 | * @throws Exception |
||
| 28 | */ |
||
| 29 | public function assert(string $path, string $command): bool |
||
| 40 | ); |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param string $path |
||
| 45 | * @return bool |
||
| 46 | */ |
||
| 47 | private function baseFileContainsPharExtension(string $path): bool |
||
| 57 |