@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | $sslOptions = stream_context_create(array('ssl' => array('capture_peer_cert' => true))); |
28 | 28 | |
29 | 29 | $request = stream_socket_client( |
30 | - 'ssl://' . $response->getUri()->getHost() . ':443', |
|
30 | + 'ssl://'.$response->getUri()->getHost().':443', |
|
31 | 31 | $errno, |
32 | 32 | $errstr, |
33 | 33 | 30, |
@@ -42,10 +42,10 @@ discard block |
||
42 | 42 | $validTo = date('d.m.Y H:i:s', $certinfo['validTo_time_t']); |
43 | 43 | |
44 | 44 | if ($certinfo['validFrom_time_t'] > time() || $certinfo['validTo_time_t'] < time()) { |
45 | - $errorMessage = 'Certificate is expired. [' . $validFrom . ' - ' . $validTo . ']'; |
|
45 | + $errorMessage = 'Certificate is expired. ['.$validFrom.' - '.$validTo.']'; |
|
46 | 46 | throw new ValidationFailedException($errorMessage); |
47 | - } elseif ($certinfo['validTo_time_t'] < strtotime('+' . $this->expireWarningTime . 'days')) { |
|
48 | - $errorMessage = 'Certificate warning, expires in lower than ' . $this->expireWarningTime . ' days. Certificate expires at: ' . $validTo; |
|
47 | + } elseif ($certinfo['validTo_time_t'] < strtotime('+'.$this->expireWarningTime.'days')) { |
|
48 | + $errorMessage = 'Certificate warning, expires in lower than '.$this->expireWarningTime.' days. Certificate expires at: '.$validTo; |
|
49 | 49 | throw new ValidationFailedException($errorMessage); |
50 | 50 | } |
51 | 51 | } |