@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | /** |
| 40 | 40 | * Checks the ping of the host |
| 41 | 41 | * |
| 42 | - * @return double|false |
|
| 42 | + * @return double |
|
| 43 | 43 | */ |
| 44 | 44 | public function ping(){ |
| 45 | 45 | $this->ping = $this->pinger->ping(); |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | /** |
| 72 | 72 | * Gets the value of host. |
| 73 | 73 | * |
| 74 | - * @return mixed |
|
| 74 | + * @return string |
|
| 75 | 75 | */ |
| 76 | 76 | public function getHost() |
| 77 | 77 | { |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | /** |
| 82 | 82 | * Gets the value of ping. |
| 83 | 83 | * |
| 84 | - * @return mixed |
|
| 84 | + * @return double |
|
| 85 | 85 | */ |
| 86 | 86 | public function getPing() |
| 87 | 87 | { |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | /** |
| 92 | 92 | * Gets the value of statusCode. |
| 93 | 93 | * |
| 94 | - * @return mixed |
|
| 94 | + * @return integer |
|
| 95 | 95 | */ |
| 96 | 96 | public function getStatusCode() |
| 97 | 97 | { |
@@ -49,8 +49,8 @@ discard block |
||
| 49 | 49 | */ |
| 50 | 50 | protected function strip($host) |
| 51 | 51 | { |
| 52 | - $host = str_replace("https://","",$host); |
|
| 53 | - $host = str_replace("http://", "",$host); |
|
| 52 | + $host = str_replace("https://", "", $host); |
|
| 53 | + $host = str_replace("http://", "", $host); |
|
| 54 | 54 | return $host; |
| 55 | 55 | } |
| 56 | 56 | |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | * |
| 71 | 71 | * @return integer |
| 72 | 72 | */ |
| 73 | - public function status(){ |
|
| 73 | + public function status() { |
|
| 74 | 74 | $response = $this->requester->request('GET', $this->host); |
| 75 | 75 | $this->statusCode = $response->getStatusCode(); |
| 76 | 76 | return $this->getStatusCode(); |