Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 9 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
33 | View Code Duplication | public function toSlack($notifiable) |
|
34 | { |
||
35 | return (new SlackMessage) |
||
36 | ->success() |
||
37 | ->content("Site {$this->event->monitor->url} is up") |
||
38 | ->attachment(function (SlackAttachment $attachment) { |
||
39 | $attachment->fields($this->getMonitorProperties()); |
||
40 | }); |
||
41 | } |
||
42 | |||
55 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.