@@ -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) |
@@ -26,7 +26,7 @@ |
||
26 | 26 | |
27 | 27 | exec($command, $output); |
28 | 28 | |
29 | - $count = (int)$output[0]; |
|
29 | + $count = (int) $output[0]; |
|
30 | 30 | |
31 | 31 | if ($count > $this->maxNumber) { |
32 | 32 | return new Result(Result::STATUS_FAIL, 'Too many processes found "' . $this->processName . '" (current: ' . $count . ', expected < ' . $this->maxNumber . ').'); |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | |
38 | 38 | exec($command, $output, $return); |
39 | 39 | |
40 | - $numberLines = (int)$output[0]; |
|
40 | + $numberLines = (int) $output[0]; |
|
41 | 41 | |
42 | 42 | if ($this->relation === self::RELATION_MAX) { |
43 | 43 | if ($numberLines > $this->limit) { |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | public function init($file, $limit, $relation = self::RELATION_MAX, $pattern = null) |
58 | 58 | { |
59 | 59 | $this->file = $file; |
60 | - $this->pattern = (array)$pattern; |
|
60 | + $this->pattern = (array) $pattern; |
|
61 | 61 | $this->relation = $relation; |
62 | 62 | $this->limit = $limit; |
63 | 63 | } |
@@ -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); |