| Conditions | 3 |
| Paths | 2 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function getMonitorProperties($extraProperties = []): array |
||
| 28 | { |
||
| 29 | $monitor = $this->getMonitor(); |
||
| 30 | |||
| 31 | $properties = array_merge([], $extraProperties); |
||
| 32 | |||
| 33 | if ($monitor->certificate_check_enabled && $monitor->certificate_status === CertificateStatus::VALID) { |
||
| 34 | $certificateTitle = "Certificate expires in {$monitor->formattedCertificateExpirationDate('forHumans')}"; |
||
| 35 | $certificateIssuer = $monitor->certificate_issuer; |
||
| 36 | |||
| 37 | $properties[$certificateTitle] = $certificateIssuer; |
||
| 38 | } |
||
| 39 | |||
| 40 | return array_filter($properties); |
||
| 41 | } |
||
| 42 | |||
| 59 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.