@@ -27,13 +27,13 @@ |
||
27 | 27 | if ($response->getDuration() > $this->maxDuration) { |
28 | 28 | return new CheckResult( |
29 | 29 | CheckResult::STATUS_FAILURE, |
30 | - 'The http request took ' . (int) $response->getDuration() . ' milliseconds (limit was ' . $this->maxDuration . 'ms).', |
|
30 | + 'The http request took '.(int) $response->getDuration().' milliseconds (limit was '.$this->maxDuration.'ms).', |
|
31 | 31 | (int) $response->getDuration()); |
32 | 32 | } |
33 | 33 | |
34 | 34 | return new CheckResult( |
35 | 35 | CheckResult::STATUS_SUCCESS, |
36 | - 'The http request took ' . (int) $response->getDuration() . ' milliseconds.', |
|
36 | + 'The http request took '.(int) $response->getDuration().' milliseconds.', |
|
37 | 37 | (int) $response->getDuration()); |
38 | 38 | } |
39 | 39 | } |
@@ -26,13 +26,13 @@ |
||
26 | 26 | $validTo = date('d.m.Y H:i:s', $certInfo['validTo_time_t']); |
27 | 27 | |
28 | 28 | if ($certInfo['validFrom_time_t'] > time() || $certInfo['validTo_time_t'] < time()) { |
29 | - $errorMessage = 'Certificate is expired. [' . $validFrom . ' - ' . $validTo . ']'; |
|
29 | + $errorMessage = 'Certificate is expired. ['.$validFrom.' - '.$validTo.']'; |
|
30 | 30 | return new CheckResult(CheckResult::STATUS_FAILURE, $errorMessage); |
31 | - } elseif ($certInfo['validTo_time_t'] < strtotime('+' . $this->expireWarningTime . 'days')) { |
|
32 | - $errorMessage = 'Certificate warning, expires in less than ' . $this->expireWarningTime . ' days. Certificate expires at: ' . $validTo; |
|
31 | + } elseif ($certInfo['validTo_time_t'] < strtotime('+'.$this->expireWarningTime.'days')) { |
|
32 | + $errorMessage = 'Certificate warning, expires in less than '.$this->expireWarningTime.' days. Certificate expires at: '.$validTo; |
|
33 | 33 | return new CheckResult(CheckResult::STATUS_FAILURE, $errorMessage); |
34 | 34 | } |
35 | 35 | |
36 | - return new CheckResult(CheckResult::STATUS_SUCCESS, 'The certificate does not expire within the next ' . $this->expireWarningTime . ' days. Expire date: ' . $validTo . '.'); |
|
36 | + return new CheckResult(CheckResult::STATUS_SUCCESS, 'The certificate does not expire within the next '.$this->expireWarningTime.' days. Expire date: '.$validTo.'.'); |
|
37 | 37 | } |
38 | 38 | } |