Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | public function toSlack($notifiable) |
||
33 | { |
||
34 | return (new SlackMessage) |
||
35 | ->warning() |
||
36 | ->attachment(function (SlackAttachment $attachment) { |
||
37 | $attachment |
||
38 | ->title($this->getSubject()) |
||
39 | ->content($this->getMessageText()) |
||
40 | ->fallback($this->getMessageText()) |
||
41 | ->timestamp(Carbon::now()); |
||
42 | }); |
||
43 | } |
||
44 | |||
57 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.