@@ -69,17 +69,17 @@ |
||
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 | } |
80 | 80 | |
81 | 81 | if ($this->responseCode != '200' |
82 | - || ! $this->checkResponseContains($this->responseContent, $this->checkPhrase)) { |
|
82 | + || !$this->checkResponseContains($this->responseContent, $this->checkPhrase)) { |
|
83 | 83 | event(new HttpPingDown($this)); |
84 | 84 | } else { |
85 | 85 | event(new HttpPingUp($this)); |