Conditions | 3 |
Paths | 4 |
Total Lines | 22 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function getMonitorProperties($extraProperties = []): array |
||
21 | { |
||
22 | $monitor = $this->event->monitor; |
||
23 | |||
24 | $properties['Location'] = config('laravel-uptime-monitor.notifications.location'); |
||
25 | |||
26 | $properties['Url'] = (string) $monitor->url; |
||
27 | |||
28 | if (! empty($monitor->look_for_string)) { |
||
29 | $properties['Look for string'] = $monitor->look_for_string; |
||
30 | } |
||
31 | |||
32 | $properties = array_merge($properties, $extraProperties); |
||
33 | |||
34 | if ($monitor->certificate_check_enabled) { |
||
35 | $properties['Certificate status'] = $monitor->certificate_status; |
||
36 | $properties['Certificate issuer'] = $monitor->certificate_issuer; |
||
37 | $properties['Certificate expiration date'] = $monitor->formattedCertificateExpirationDate; |
||
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.