@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace Tylercd100\ServerStatus; |
4 | 4 | |
5 | -use JJG\Ping; |
|
6 | 5 | use GuzzleHttp\Client; |
6 | +use JJG\Ping; |
|
7 | 7 | |
8 | 8 | class Host |
9 | 9 | { |
@@ -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(); |