Completed
Pull Request — master (#29)
by
unknown
16s
created
src/RateLimitChannelManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/RateLimitedNotification.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -92,15 +92,15 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.