@@ -24,7 +24,7 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | public function register() |
| 26 | 26 | { |
| 27 | - $this->app->singleton(ChannelManager::class, function ($app) { |
|
| 27 | + $this->app->singleton(ChannelManager::class, function($app) { |
|
| 28 | 28 | return new RateLimitChannelManager($app); |
| 29 | 29 | }); |
| 30 | 30 | |
@@ -92,15 +92,15 @@ |
||
| 92 | 92 | $key = $notifiable->rateLimitNotifiableKey(); |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | - if (! $key && method_exists($notifiable, 'getKey')) { |
|
| 95 | + if (!$key && method_exists($notifiable, 'getKey')) { |
|
| 96 | 96 | $key = $notifiable->getKey(); |
| 97 | 97 | } |
| 98 | 98 | |
| 99 | - if (! $key && property_exists($notifiable, 'id')) { |
|
| 99 | + if (!$key && property_exists($notifiable, 'id')) { |
|
| 100 | 100 | $key = $notifiable->id; |
| 101 | 101 | } |
| 102 | 102 | |
| 103 | - if (! $key) { |
|
| 103 | + if (!$key) { |
|
| 104 | 104 | $key = md5(json_encode($notifiable)); |
| 105 | 105 | } |
| 106 | 106 | |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | } catch (\Exception $e) { |
| 87 | 87 | $notification_type = get_class($notifiable); |
| 88 | 88 | |
| 89 | - logger()->warning('Notification rate limiter encountered an internal exception (notification type: ' . $notification_type . '); bypassing limiter. Error: ' . $e->getMessage()); |
|
| 89 | + logger()->warning('Notification rate limiter encountered an internal exception (notification type: '.$notification_type.'); bypassing limiter. Error: '.$e->getMessage()); |
|
| 90 | 90 | report($e); |
| 91 | 91 | } |
| 92 | 92 | |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | * |
| 104 | 104 | * @see \Illuminate\Notifications\NotificationSender::formatNotifiables |
| 105 | 105 | */ |
| 106 | - protected function formatNotifiables(mixed $notifiables): ModelCollection|Collection|array |
|
| 106 | + protected function formatNotifiables(mixed $notifiables): ModelCollection | Collection | array |
|
| 107 | 107 | { |
| 108 | 108 | if (!$notifiables instanceof Collection && !is_array($notifiables)) { |
| 109 | 109 | return $notifiables instanceof Model |