Completed
Push — master ( 140926...9ed9ef )
by Tyler
03:25
created
src/Host.php 3 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     /**
53 53
      * Gets the value of ping.
54 54
      *
55
-     * @return mixed
55
+     * @return integer
56 56
      */
57 57
     public function getPing()
58 58
     {
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     /**
63 63
      * Gets the value of statusCode.
64 64
      *
65
-     * @return mixed
65
+     * @return integer
66 66
      */
67 67
     public function getStatusCode()
68 68
     {
Please login to merge, or discard this patch.