| Total Complexity | 7 |
| Total Lines | 58 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | class Server |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * Returns http host |
||
| 22 | * |
||
| 23 | * @return string |
||
| 24 | */ |
||
| 25 | public static function getHost() |
||
| 26 | { |
||
| 27 | return $_SERVER["HTTP_HOST"]; |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Returns server port |
||
| 32 | * |
||
| 33 | * @return string |
||
| 34 | */ |
||
| 35 | public static function getServerPort() |
||
| 36 | { |
||
| 37 | return $_SERVER["SERVER_PORT"]; |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Returns client port |
||
| 42 | * |
||
| 43 | * @return string |
||
| 44 | */ |
||
| 45 | public static function getClientPort() |
||
| 46 | { |
||
| 47 | return $_SERVER["REMOTE_PORT"]; |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Returns server ip |
||
| 52 | * |
||
| 53 | * @return string |
||
| 54 | */ |
||
| 55 | public static function getServerIP() |
||
| 58 | } |
||
| 59 | |||
| 60 | /** |
||
| 61 | * Returns client ip |
||
| 62 | * |
||
| 63 | * @return string |
||
| 64 | */ |
||
| 65 | public static function getClientIP() |
||
| 78 |