@@ -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 | { |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | * Checks the ping of the host |
23 | 23 | * @return [type] [description] |
24 | 24 | */ |
25 | - public function ping(){ |
|
25 | + public function ping() { |
|
26 | 26 | $this->ping = $this->pinger->ping(); |
27 | 27 | return $this->getPing(); |
28 | 28 | } |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | * Checks the status of the host |
32 | 32 | * @return [type] [description] |
33 | 33 | */ |
34 | - public function status(){ |
|
34 | + public function status() { |
|
35 | 35 | $client = new Client(); |
36 | 36 | $res = $client->request('GET', $this->host); |
37 | 37 | $this->statusCode = $res->getStatusCode(); |
@@ -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 | { |