Conditions | 5 |
Paths | 12 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 14 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
44 | View Code Duplication | public static function current() |
|
45 | { |
||
46 | $protocol = (!empty($_SERVER['HTTPS']) |
||
47 | && $_SERVER['HTTPS'] !== 'off' |
||
48 | || $_SERVER['SERVER_PORT'] === 443) ? 'https://' : 'http://'; |
||
49 | |||
50 | if (isset($_SERVER['HTTP_X_FORWARDED_HOST'])) { |
||
51 | $host = $_SERVER['HTTP_X_FORWARDED_HOST']; |
||
52 | } else { |
||
53 | $host = $_SERVER['HTTP_HOST']; |
||
54 | } |
||
55 | |||
56 | return $protocol . $host . $_SERVER['REQUEST_URI']; |
||
57 | } |
||
58 | } |
||
59 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.