@@ -69,19 +69,19 @@ |
||
69 | 69 | ]); |
70 | 70 | $response = $guzzle->get($this->url); |
71 | 71 | $this->responseCode = $response->getStatusCode(); |
72 | - $this->responseContent = (string)$response->getBody(); |
|
72 | + $this->responseContent = (string) $response->getBody(); |
|
73 | 73 | } catch (RequestException $e) { |
74 | 74 | $response = $e->getResponse(); |
75 | 75 | $this->responseCode = $response->getStatusCode(); |
76 | - $this->responseContent = (string)$response->getBody(); |
|
76 | + $this->responseContent = (string) $response->getBody(); |
|
77 | 77 | } catch (\Exception $e) { |
78 | 78 | // To prevent command from crashing and let Notifier handle this |
79 | 79 | $this->responseCode = 500; |
80 | - $this->responseContent = $e->getMessage() . PHP_EOL . $e->getTraceAsString(); |
|
80 | + $this->responseContent = $e->getMessage().PHP_EOL.$e->getTraceAsString(); |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | if ($this->responseCode != '200' |
84 | - || ! $this->checkResponseContains($this->responseContent, $this->checkPhrase)) { |
|
84 | + || !$this->checkResponseContains($this->responseContent, $this->checkPhrase)) { |
|
85 | 85 | event(new HttpPingDown($this)); |
86 | 86 | } else { |
87 | 87 | event(new HttpPingUp($this)); |