Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
16 | public function handleReport($report, $subscription) |
||
17 | { |
||
18 | if ($report->isSuccess()) { |
||
19 | return; |
||
20 | } |
||
21 | |||
22 | Log::warning("Notification failed to sent for subscription {$subscription->endpoint}: {$report->getReason()}"); |
||
23 | |||
24 | if ($report->isSubscriptionExpired()) { |
||
25 | $subscription->delete(); |
||
26 | } |
||
27 | } |
||
28 | } |
||
29 |