Conditions | 4 |
Paths | 6 |
Total Lines | 19 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function getUptimeMonitorProperties($extraProperties): array |
||
21 | { |
||
22 | $uptimeMonitor = $this->event->uptimeMonitor; |
||
23 | |||
24 | $properties['url'] = $uptimeMonitor->url; |
||
25 | |||
26 | if (! empty($uptimeMonitor->look_for_string)) { |
||
27 | $properties['look for string'] = $uptimeMonitor->look_for_string; |
||
28 | } |
||
29 | |||
30 | $properties = array_merge($properties, $extraProperties); |
||
31 | |||
32 | if ($uptimeMonitor->check_ssl_certificate) { |
||
33 | $properties['ssl certificate valid'] = $uptimeMonitor->ssl_certificate_valid ? 'yes' : 'no'; |
||
34 | $properties['ssl certificate expiration date'] = $properties->ssl_certificate_expiration_date->format('Y/m/d H:i:s'); |
||
35 | } |
||
36 | |||
37 | return $properties; |
||
38 | } |
||
39 | |||
42 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.