@@ -70,13 +70,13 @@ discard block |
||
70 | 70 | ]); |
71 | 71 | $response = $guzzle->get($this->url); |
72 | 72 | $this->responseCode = $response->getStatusCode(); |
73 | - $this->responseContent = (string)$response->getBody(); |
|
73 | + $this->responseContent = (string) $response->getBody(); |
|
74 | 74 | } catch (RequestException $e) { |
75 | 75 | $response = $e->getResponse(); |
76 | 76 | |
77 | 77 | if ($response instanceof ResponseInterface) { |
78 | 78 | $this->responseCode = $response->getStatusCode(); |
79 | - $this->responseContent = (string)$response->getBody(); |
|
79 | + $this->responseContent = (string) $response->getBody(); |
|
80 | 80 | } else { |
81 | 81 | $this->setResponseCodeAndContentOnException($e); |
82 | 82 | } |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | } |
87 | 87 | |
88 | 88 | if ($this->responseCode != '200' |
89 | - || ! $this->checkResponseContains($this->responseContent, $this->checkPhrase)) { |
|
89 | + || !$this->checkResponseContains($this->responseContent, $this->checkPhrase)) { |
|
90 | 90 | event(new HttpPingDown($this)); |
91 | 91 | } else { |
92 | 92 | event(new HttpPingUp($this)); |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | protected function setResponseCodeAndContentOnException(\Exception $e) |
100 | 100 | { |
101 | 101 | $this->responseCode = null; |
102 | - $this->responseContent = $e->getMessage() . PHP_EOL . $e->getTraceAsString(); |
|
102 | + $this->responseContent = $e->getMessage().PHP_EOL.$e->getTraceAsString(); |
|
103 | 103 | } |
104 | 104 | |
105 | 105 | protected function checkResponseContains($html, $phrase) |