| Conditions | 5 | 
| Paths | 6 | 
| Total Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 31 | public static function isHttps(): bool  | 
            ||
| 32 | 	{ | 
            ||
| 33 | 		if (!isset(self::$httpsCache)) { | 
            ||
| 34 | self::$httpsCache = (!empty($_SERVER['HTTPS']) && 'off' !== strtolower($_SERVER['HTTPS']))  | 
            ||
| 35 | || (!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && 'https' === strtolower($_SERVER['HTTP_X_FORWARDED_PROTO']));  | 
            ||
| 36 | }  | 
            ||
| 37 | return self::$httpsCache;  | 
            ||
| 38 | }  | 
            ||
| 39 | }  | 
            ||
| 40 |