| Total Complexity | 7 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 12 | class EnvCheck |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @return bool |
||
| 16 | */ |
||
| 17 | 1 | public static function isXterm(): bool |
|
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param string $varName |
||
| 26 | * @param string $checkFor |
||
| 27 | * @return bool |
||
| 28 | */ |
||
| 29 | 6 | protected static function checkEnvVariable(string $varName, string $checkFor): bool |
|
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return bool |
||
| 40 | */ |
||
| 41 | 5 | public static function has256ColorSupport(): bool |
|
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return bool |
||
| 50 | */ |
||
| 51 | 5 | public static function hasTrueColorSupport(): bool |
|
| 57 |