@@ -6,7 +6,7 @@ |
||
| 6 | 6 | |
| 7 | 7 | // http resource status check |
| 8 | 8 | $httpStatusCheck = new \Leankoala\HealthFoundation\Check\Resource\Http\StatusCodeCheck(); |
| 9 | -$httpStatusCheck->init('https://about.google/intl/com/',200); // PASS |
|
| 9 | +$httpStatusCheck->init('https://about.google/intl/com/', 200); // PASS |
|
| 10 | 10 | // $httpStatusCheck->init('https://about.google/intl/com/',404); // WARN |
| 11 | 11 | // $httpStatusCheck->init('https://www.there-is-no-domain-connected-'.time().'.com/index.html',200); // FAIL |
| 12 | 12 | $foundation->registerCheck($httpStatusCheck); |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | public function init($destination, $expectedHttpStatus = 200) |
| 24 | 24 | { |
| 25 | 25 | $this->destination = $destination; |
| 26 | - $this->expectedHttpStatus = (int)$expectedHttpStatus; |
|
| 26 | + $this->expectedHttpStatus = (int) $expectedHttpStatus; |
|
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | public function setHttpClient(Client $client) |