| Total Complexity | 6 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 7 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | class PharSupport |
||
| 25 | { |
||
| 26 | /** @var array<string, bool> */ |
||
| 27 | protected static array $mocks = []; |
||
| 28 | |||
| 29 | public static function mock(string $method, bool $value): void |
||
| 32 | } |
||
| 33 | |||
| 34 | public static function clearMocks(): void |
||
| 35 | { |
||
| 36 | self::$mocks = []; |
||
| 37 | } |
||
| 38 | |||
| 39 | public static function running(): bool |
||
| 40 | { |
||
| 41 | return self::$mocks['running'] ?? Phar::running() !== ''; |
||
| 42 | } |
||
| 43 | |||
| 44 | public static function hasVendorDirectory(): bool |
||
| 47 | } |
||
| 48 | |||
| 49 | public static function vendorPath(string $path = '', string $package = 'framework'): string |
||
| 56 | } |
||
| 57 | } |
||
| 58 |