@@ -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 | |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | * @param integer $timeout The timeout of the request |
| 72 | 72 | * @return integer |
| 73 | 73 | */ |
| 74 | - public function status($timeout = 5){ |
|
| 74 | + public function status($timeout = 5) { |
|
| 75 | 75 | $response = $this->requester->request('GET', $this->host, [ |
| 76 | 76 | 'connect_timeout' => 5, |
| 77 | 77 | 'timeout' => 5 |