@@ -19,14 +19,14 @@ discard block |
||
19 | 19 | |
20 | 20 | public function __construct( |
21 | 21 | Throwable $exception, |
22 | - array $dontAlertExceptions = [], |
|
23 | - array $notificationLevelsMapping = [], |
|
24 | - array $exceptionContext = [] |
|
22 | + array $dontAlertExceptions = [ ], |
|
23 | + array $notificationLevelsMapping = [ ], |
|
24 | + array $exceptionContext = [ ] |
|
25 | 25 | ) { |
26 | 26 | $this->exception = $exception; |
27 | 27 | $this->exceptionContext = $exceptionContext; |
28 | 28 | $this->dontAlertExceptions = $dontAlertExceptions; |
29 | - $this->notificationLevel = $notificationLevelsMapping[get_class($exception)] |
|
29 | + $this->notificationLevel = $notificationLevelsMapping[ get_class($exception) ] |
|
30 | 30 | ?? config('laravel_alert_notifications.default_notification_level'); |
31 | 31 | } |
32 | 32 | |
@@ -41,12 +41,12 @@ discard block |
||
41 | 41 | |
42 | 42 | protected function shouldAlert() |
43 | 43 | { |
44 | - $levelsNotToNotify = config('laravel_alert_notifications.exclude_notification_levels') ?? []; |
|
44 | + $levelsNotToNotify = config('laravel_alert_notifications.exclude_notification_levels') ?? [ ]; |
|
45 | 45 | if ($this->isDonotAlertException() || in_array($this->notificationLevel, $levelsNotToNotify)) { |
46 | 46 | return false; |
47 | 47 | } |
48 | 48 | |
49 | - if (! config('laravel_alert_notifications.throttle_enabled')) { |
|
49 | + if ( ! config('laravel_alert_notifications.throttle_enabled')) { |
|
50 | 50 | return true; |
51 | 51 | } |
52 | 52 |