@@ -27,14 +27,14 @@ discard block |
||
27 | 27 | */ |
28 | 28 | public function __construct( |
29 | 29 | $exception, |
30 | - array $dontAlertExceptions = [], |
|
31 | - array $notificationLevelsMapping = [], |
|
32 | - array $exceptionContext = [] |
|
30 | + array $dontAlertExceptions = [ ], |
|
31 | + array $notificationLevelsMapping = [ ], |
|
32 | + array $exceptionContext = [ ] |
|
33 | 33 | ) { |
34 | 34 | $this->exception = $exception; |
35 | 35 | $this->exceptionContext = $exceptionContext; |
36 | 36 | $this->dontAlertExceptions = $dontAlertExceptions; |
37 | - $this->notificationLevel = $notificationLevelsMapping[get_class($exception)] |
|
37 | + $this->notificationLevel = $notificationLevelsMapping[ get_class($exception) ] |
|
38 | 38 | ?? config('laravel_alert_notifications.default_notification_level'); |
39 | 39 | } |
40 | 40 | |
@@ -49,12 +49,12 @@ discard block |
||
49 | 49 | |
50 | 50 | protected function shouldAlert() |
51 | 51 | { |
52 | - $levelsNotToNotify = config('laravel_alert_notifications.exclude_notification_levels') ?? []; |
|
52 | + $levelsNotToNotify = config('laravel_alert_notifications.exclude_notification_levels') ?? [ ]; |
|
53 | 53 | if ($this->isDonotAlertException() || in_array($this->notificationLevel, $levelsNotToNotify)) { |
54 | 54 | return false; |
55 | 55 | } |
56 | 56 | |
57 | - if (! config('laravel_alert_notifications.throttle_enabled')) { |
|
57 | + if ( ! config('laravel_alert_notifications.throttle_enabled')) { |
|
58 | 58 | return true; |
59 | 59 | } |
60 | 60 |