@@ -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 |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | { |
12 | 12 | public function send($notifiables, $notification): void |
13 | 13 | { |
14 | - if (! $notification instanceof ShouldRateLimit) { |
|
14 | + if (!$notification instanceof ShouldRateLimit) { |
|
15 | 15 | parent::send($notifiables, $notification); |
16 | 16 | } else { |
17 | 17 | $notifiables = $this->formatNotifiables($notifiables); |
@@ -53,9 +53,9 @@ discard block |
||
53 | 53 | * |
54 | 54 | * @see \Illuminate\Notifications\NotificationSender::formatNotifiables |
55 | 55 | */ |
56 | - protected function formatNotifiables(mixed $notifiables): ModelCollection|Collection|array |
|
56 | + protected function formatNotifiables(mixed $notifiables): ModelCollection | Collection | array |
|
57 | 57 | { |
58 | - if (! $notifiables instanceof Collection && ! is_array($notifiables)) { |
|
58 | + if (!$notifiables instanceof Collection && !is_array($notifiables)) { |
|
59 | 59 | return $notifiables instanceof Model |
60 | 60 | ? new ModelCollection([$notifiables]) : [$notifiables]; |
61 | 61 | } |
@@ -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 |