@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | if ($strategy == 'serialize') { |
| 43 | 43 | return [$serialized_notification]; |
| 44 | 44 | } else { |
| 45 | - if (! in_array($strategy, hash_algos())) { |
|
| 45 | + if (!in_array($strategy, hash_algos())) { |
|
| 46 | 46 | throw new \Exception("Unsupported unique notification strategy hashing algorithm: $strategy"); |
| 47 | 47 | } |
| 48 | 48 | |
@@ -116,15 +116,15 @@ discard block |
||
| 116 | 116 | $key = $notifiable->rateLimitNotifiableKey(); |
| 117 | 117 | } |
| 118 | 118 | |
| 119 | - if (! $key && method_exists($notifiable, 'getKey')) { |
|
| 119 | + if (!$key && method_exists($notifiable, 'getKey')) { |
|
| 120 | 120 | $key = $notifiable->getKey(); |
| 121 | 121 | } |
| 122 | 122 | |
| 123 | - if (! $key && property_exists($notifiable, 'id')) { |
|
| 123 | + if (!$key && property_exists($notifiable, 'id')) { |
|
| 124 | 124 | $key = $notifiable->id; |
| 125 | 125 | } |
| 126 | 126 | |
| 127 | - if (! $key) { |
|
| 127 | + if (!$key) { |
|
| 128 | 128 | $key = md5(json_encode($notifiable)); |
| 129 | 129 | } |
| 130 | 130 | |