Conditions | 3 |
Paths | 2 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3.0416 |
Changes | 0 |
1 | <?php |
||
23 | 1 | public function add(Notification $notification): void |
|
24 | { |
||
25 | 1 | $deduplicationKey = $notification->deduplicationKey(); |
|
26 | 1 | if (!is_null($deduplicationKey) && $this->hasNotificationOfDeduplicationKey($deduplicationKey)) { |
|
27 | return; |
||
28 | } |
||
29 | 1 | $this->notifications[$this->nextIdentity()->id()] = $notification; |
|
30 | 1 | } |
|
31 | |||
74 |