@@ -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 . ').'); |
@@ -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); |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | |
48 | 48 | exec($command, $output, $return); |
49 | 49 | |
50 | - return (int)$output[0]; |
|
50 | + return (int) $output[0]; |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | /** |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | public function init($file, $limit, $relation = self::RELATION_MAX, $pattern = null) |
75 | 75 | { |
76 | 76 | $this->file = $file; |
77 | - $this->pattern = (array)$pattern; |
|
77 | + $this->pattern = (array) $pattern; |
|
78 | 78 | $this->relation = $relation; |
79 | 79 | $this->limit = $limit; |
80 | 80 | } |
@@ -48,7 +48,7 @@ |
||
48 | 48 | { |
49 | 49 | $uptimeTimestamp = \uptime(); |
50 | 50 | |
51 | - $systemStartDate = new \DateTime(date('Y-m-d H:i:s', (int)$uptimeTimestamp)); |
|
51 | + $systemStartDate = new \DateTime(date('Y-m-d H:i:s', (int) $uptimeTimestamp)); |
|
52 | 52 | $now = new \DateTime(); |
53 | 53 | |
54 | 54 | $uptime = $systemStartDate->diff($now); |
@@ -26,7 +26,7 @@ |
||
26 | 26 | |
27 | 27 | protected function execute(InputInterface $input, OutputInterface $output) |
28 | 28 | { |
29 | - $configFile = (string)$input->getArgument('config'); |
|
29 | + $configFile = (string) $input->getArgument('config'); |
|
30 | 30 | |
31 | 31 | if (!file_exists($configFile)) { |
32 | 32 | throw new \RuntimeException('Unable to find config file.'); |