|  | @@ -25,13 +25,13 @@ | 
                                                    
                                                        |  |  |  block discarded – undo | 
                                                                                                                                                                                                                    
                                                            | 25 | 25 |          $validTo = date('d.m.Y H:i:s', $certInfo['validTo_time_t']); | 
                                                                                                            
                                                            | 26 | 26 |   | 
                                                                                                            
                                                            | 27 | 27 |          if ($certInfo['validFrom_time_t'] > time() || $certInfo['validTo_time_t'] < time()) { | 
                                                                                                            
                                                            | 28 |  | -            $errorMessage = 'Certificate is expired. [' . $validFrom . ' - ' . $validTo . ']'; | 
                                                                                                            
                                                            |  | 28 | +            $errorMessage = 'Certificate is expired. ['.$validFrom.' - '.$validTo.']'; | 
                                                                                                            
                                                            | 29 | 29 |              return new CheckResult(CheckResult::STATUS_FAILURE, $errorMessage); | 
                                                                                                            
                                                            | 30 |  | -        } elseif ($certInfo['validTo_time_t'] < strtotime('+' . $this->expireWarningTime . 'days')) { | 
                                                                                                            
                                                            | 31 |  | -            $errorMessage = 'Certificate warning, expires in less than ' . $this->expireWarningTime . ' days. Certificate expires at: ' . $validTo; | 
                                                                                                            
                                                            |  | 30 | +        } elseif ($certInfo['validTo_time_t'] < strtotime('+'.$this->expireWarningTime.'days')) { | 
                                                                                                            
                                                            |  | 31 | +            $errorMessage = 'Certificate warning, expires in less than '.$this->expireWarningTime.' days. Certificate expires at: '.$validTo; | 
                                                                                                            
                                                            | 32 | 32 |              return new CheckResult(CheckResult::STATUS_FAILURE, $errorMessage, 0); | 
                                                                                                            
                                                            | 33 | 33 |          } | 
                                                                                                            
                                                            | 34 | 34 |   | 
                                                                                                            
                                                            | 35 |  | -        return new CheckResult(CheckResult::STATUS_SUCCESS, 'The certificate does not expire within the next ' . $this->expireWarningTime . ' days. Expire date: ' . $validTo . '.'); | 
                                                                                                            
                                                            |  | 35 | +        return new CheckResult(CheckResult::STATUS_SUCCESS, 'The certificate does not expire within the next '.$this->expireWarningTime.' days. Expire date: '.$validTo.'.'); | 
                                                                                                            
                                                            | 36 | 36 |      } | 
                                                                                                            
                                                            | 37 | 37 |  } | 
                                                                                                                                                
                                         
                                        
                                            
                                                                                                    Please login to merge, or discard this patch.