| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 55 | public function notify(string $text, string $body, $icon = null): void |
||
| 56 | { |
||
| 57 | $notifier = $this->getContainer() |
||
| 58 | ->make(Notifier::class); |
||
| 59 | |||
| 60 | $notification = $this->getContainer() |
||
| 61 | ->make(Notification::class) |
||
| 62 | ->setTitle($text) |
||
| 63 | ->setBody($body) |
||
| 64 | ->setIcon($icon); |
||
| 65 | |||
| 66 | $notifier->send($notification); |
||
| 67 | } |
||
| 68 | } |
||
| 69 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.