@@ -53,6 +53,9 @@ discard block |
||
53 | 53 | $this->respond($msg); |
54 | 54 | } |
55 | 55 | |
56 | + /** |
|
57 | + * @param string $force |
|
58 | + */ |
|
56 | 59 | private function respond(Message $msg, $force = null) |
57 | 60 | { |
58 | 61 | $url = $this->url($force); |
@@ -67,6 +70,9 @@ discard block |
||
67 | 70 | ); |
68 | 71 | } |
69 | 72 | |
73 | + /** |
|
74 | + * @return string |
|
75 | + */ |
|
70 | 76 | private function url($force = null) |
71 | 77 | { |
72 | 78 | $query = $force ? "?force=$force" : ''; |
@@ -58,7 +58,7 @@ |
||
58 | 58 | $url = $this->url($force); |
59 | 59 | $this->guzzle->getAsync($url) |
60 | 60 | ->then( |
61 | - function (ResponseInterface $response) use ($msg) { |
|
61 | + function(ResponseInterface $response) use ($msg) { |
|
62 | 62 | $json = $response->getBody(); |
63 | 63 | $rsp = json_decode($json); |
64 | 64 |