We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c965187 commit 9f20f0bCopy full SHA for 9f20f0b
Notification/Notification.php
@@ -167,17 +167,12 @@ protected function getDefaultEmoji(): string
167
return '';
168
}
169
170
- switch ($this->importance) {
171
- case self::IMPORTANCE_URGENT:
172
- return '🌩️';
173
- case self::IMPORTANCE_HIGH:
174
- return '🌧️';
175
- case self::IMPORTANCE_MEDIUM:
176
- return '🌦️';
177
- case self::IMPORTANCE_LOW:
178
- default:
179
- return '⛅';
180
- }
+ return match ($this->importance) {
+ self::IMPORTANCE_URGENT => '🌩️',
+ self::IMPORTANCE_HIGH => '🌧️',
+ self::IMPORTANCE_MEDIUM => '🌦️',
+ default => '⛅',
+ };
181
182
183
private function computeExceptionAsString(\Throwable $exception): string
0 commit comments