| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function handle(SendUnsentNotifications $command): void |
||
|
1 ignored issue
–
show
|
|||
| 36 | { |
||
| 37 | $notifications = $this->notificationRepository->unsentNotifications(); |
||
| 38 | foreach ($notifications as $notification) { |
||
| 39 | $this->gatewayRegistry->get($notification->destination())->send($notification); |
||
| 40 | $notification->markSent(); |
||
| 41 | } |
||
| 42 | } |
||
| 43 | } |
||
| 44 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.