@@ -70,26 +70,26 @@ |
||
| 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->responseCode = 500; |
| 82 | - $this->responseContent = $e->getMessage() . PHP_EOL . $e->getTraceAsString(); |
|
| 82 | + $this->responseContent = $e->getMessage().PHP_EOL.$e->getTraceAsString(); |
|
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | } catch (\Exception $e) { |
| 86 | 86 | // To prevent command from crashing and let Notifier handle this |
| 87 | 87 | $this->responseCode = 500; |
| 88 | - $this->responseContent = $e->getMessage() . PHP_EOL . $e->getTraceAsString(); |
|
| 88 | + $this->responseContent = $e->getMessage().PHP_EOL.$e->getTraceAsString(); |
|
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | if ($this->responseCode != '200' |
| 92 | - || ! $this->checkResponseContains($this->responseContent, $this->checkPhrase)) { |
|
| 92 | + || !$this->checkResponseContains($this->responseContent, $this->checkPhrase)) { |
|
| 93 | 93 | event(new HttpPingDown($this)); |
| 94 | 94 | } else { |
| 95 | 95 | event(new HttpPingUp($this)); |